Avoid file:/// for development and error message on geolocation fail