[Bluetooth] "not supported" → "not permitted" for non-readable characteristics.
Switch the exception message from "GATT Error: Not supported." to "GATT operation not permitted." when attempting to read a non-readable characteristic on macOS. The former is more descriptive, as Web Bluetooth does support reading characteristics, and also aligns with other platform behaviors, e.g. Windows and Linux, which currently set the "... not permitted." message. Bug: none Change-Id: I0023a5ddd35d5783cec253e3a935c295804f731b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2633646 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Cr-Commit-Position: refs/heads/master@{#844844}
Showing
Please register or sign in to comment