location error catch