Added error messaging for location