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

Throwing errors #59

Open
matthewdking opened this issue Mar 23, 2018 · 1 comment
Open

Throwing errors #59

matthewdking opened this issue Mar 23, 2018 · 1 comment
Assignees
Labels

Comments

@matthewdking
Copy link

We are doing a workshop on errors next week so this will be covered then.

    if (err) throw err;

If you throw an error then it needs to be caught in a catch so you can then do something about it (log it, send the user an error message)

@missKatiaPunter
Copy link
Collaborator

Can you specify lines of code?

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

No branches or pull requests

2 participants