Skip to content

Commit

Permalink
Fix "Preventing exceptions" example (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky authored Jun 2, 2024
1 parent e69985d commit a5a4d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ try {
When the [`reject`](api.md#optionsreject) option is `false`, the `error` is returned instead.

```js
const resultOrError = await execa`npm run build`;
const resultOrError = await execa({reject: false})`npm run build`;
if (resultOrError.failed) {
console.error(resultOrError);
}
Expand Down

0 comments on commit a5a4d69

Please sign in to comment.