Skip to content

Commit c0360cd

Browse files
committed
Update error handling
1 parent 31ab7d1 commit c0360cd

File tree

5 files changed

+54
-54
lines changed

5 files changed

+54
-54
lines changed

src/bin/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const runCli = async function () {
2424
const output = await commandA(...args)
2525
handleOutput({ output })
2626
} catch (error) {
27-
handleCliError(error, { short: true })
27+
handleCliError(error, { stack: false })
2828
}
2929
}
3030

test/snapshots/normalize.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ Generated by [AVA](https://avajs.dev).
688688
689689
{
690690
exitCode: 1,
691-
stderr: 'Permissions syntax is invalid: 10000',
691+
stderr: '✘ Error: Permissions syntax is invalid: 10000',
692692
stdout: '',
693693
}
694694

@@ -704,7 +704,7 @@ Generated by [AVA](https://avajs.dev).
704704
705705
{
706706
exitCode: 1,
707-
stderr: 'Permissions syntax is invalid: 177777',
707+
stderr: '✘ Error: Permissions syntax is invalid: 177777',
708708
stdout: '',
709709
}
710710

test/snapshots/normalize.js.snap

10 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)