Better error handling for location field.