Skip to content

Handle promise rejection in demoGithubUser call#3965

Open
AlexNT-maker wants to merge 1 commit into
javascript-tutorial:masterfrom
AlexNT-maker:master
Open

Handle promise rejection in demoGithubUser call#3965
AlexNT-maker wants to merge 1 commit into
javascript-tutorial:masterfrom
AlexNT-maker:master

Conversation

@AlexNT-maker
Copy link
Copy Markdown

Added a .catch(alert) safety net to the demoGithubUser() call to prevent an unhandled promise rejection in case the thrown error is not an HttpError.

Added a .catch(alert) safety net to the demoGithubUser() call to prevent an unhandled promise rejection in case the thrown error is not an HttpError.
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label May 22, 2026
@javascript-translate-bot javascript-translate-bot requested a review from a team May 22, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants