Skip to content

Commit feb15d9

Browse files
committed
Mention --debug when a crash occurred
1 parent 56df370 commit feb15d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/error-message.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ function report(options, err, defaultPath) {
5151
function unexpectedError(err) {
5252
const error = new CustomError(
5353
'UNEXPECTED ERROR',
54+
// prettier-ignore
5455
`I ran into an unexpected error. Please open an issue at the following link:
5556
https://github.com/jfmengels/node-elm-review/issues/new
5657
57-
Please include this error message and as much detail as you can provide. If you
58-
can, please provide a setup that makes it easy to reproduce the error. That will
59-
make it much easier to fix the issue.
58+
Please include this error message and as much detail as you can provide. Running
59+
with ${chalk.yellow('--debug')} might give additional information. If you can, please provide a
60+
setup that makes it easy to reproduce the error. That will make it much easier
61+
to fix the issue.
6062
6163
Below is the error that was encountered.
6264
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)