W3C home > Mailing lists > Public > public-device-apis-log@w3.org > July 2021

Re: [geolocation-api] Harmonize error code for watchPosition() (#95)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Thu, 29 Jul 2021 10:10:24 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-888988557-1627553422-sysbot+gh@w3.org>
The argument presented is that authors could come to rely on 0 being returned synchronously, so we might as well standardize that. 

However, I'd argue that we should only ever return 0 going forward for any/all error and continue to push developers to check the `GeolocationPositionError.code` to figure out what actually went wrong. 

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 29 July 2021 10:10:25 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:58 UTC