[w3c/push-api] Log the caught error in the push subscription example (PR #435)

Use the catch binding when reporting a registration or subscription failure.

Translations: [Chinese](https://htmlspecs.com/push-api/) · [Japanese](https://jp.htmlspecs.com/push-api/) · [Korean](https://ko.htmlspecs.com/push-api/)


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.w3.org/JinDX/push-api/pull/435.html" title="Last updated on Nov 11, 2026, 1:10 AM UTC (74073ba)">Preview</a> | <a href="https://pr-preview.w3.org/w3c/push-api/435/692ab06...JinDX:74073ba.html" title="Last updated on Nov 11, 2026, 1:10 AM UTC (74073ba)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/push-api/pull/435

-- Commit Summary --

  * Log the caught error in the push subscription example

-- File Changes --

    M index.html (2)

-- Patch Links --

https://github.com/w3c/push-api/pull/435.patch
https://github.com/w3c/push-api/pull/435.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/435
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/pull/435@github.com>

Received on Wednesday, 11 November 2026 01:11:02 UTC