W3C home > Mailing lists > Public > public-geolocation@w3.org > March 2021

Re: [geolocation-api] Change text for description of GeolocationPositionError.message attribute (#50)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Mon, 22 Mar 2021 06:11:16 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-803790331-1616393476-sysbot+gh@w3.org>
I don't think the API discriminates. The `.code` value is perfectly i18n agnostic (in a good way). What we should do is deprecate the  `.message` attribute, as it's not intended to end up being shown to the user - that last thing anyone wants is browser engineers writing user-facing error messages!  

If we do anything, we should expose an error `.type` attribute, to an enum that more easily gives access to what the error was (e.g., "timeout", "user_denied", etc.)... this would just be a slightly friendlier/less-ugly version of `.code`. 

-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/geolocation-api/issues/50#issuecomment-803790331 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 22 March 2021 06:11:18 UTC

This archive was generated by hypermail 2.4.0 : Monday, 22 March 2021 06:11:18 UTC