added error message when unable to get location