added location error callback prop