Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document error handling #12

Open
ida opened this issue Mar 16, 2024 · 0 comments
Open

document error handling #12

ida opened this issue Mar 16, 2024 · 0 comments

Comments

@ida
Copy link
Owner

ida commented Mar 16, 2024

Throwing a string throw 'Oh no!' returns a page displaying undefined,
therefore one must do throw new Error('Oh no!'), so the error is displayed in the page, or throw any other object {}, as expected, respectively better handle the case in find_answer.js (in a new issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant