Skip to content

Commit

Permalink
Merge github.com:NickKelly1/nkp-error
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Aug 28, 2021
2 parents 2ed9b31 + 1300c0d commit 7fb08e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ try {
throw message;
}
catch(_error) {
console.log(typeof _error); // 'string'
const error = coerceError(_error);
console.log(typeof _error); // "string"
const err = coerceError(_error);
console.log(error.message === message); // true
}
```
Expand Down

0 comments on commit 7fb08e1

Please sign in to comment.