checkLocationOrThrow

fun checkLocationOrThrow(location: Int, label: String)

Checks the location error.