Skip to content

Throwing errors #59

@matthewdking

Description

@matthewdking

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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions