From Xojo Documentation
This event fires if you have requested the user’s location and either the user declined or an error occurred. ErrorCodes > 0 are sent directly from the browser and the corresponding message may be browser specific.
Display the error message:
MsgBox("The device could not be located: " + ErrorMessage)