Skip to content
Myr

Separate original error message with a newline (#245)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent 8ca5dcb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
174 unmodified lines
175 const prefix = getErrorPrefix({timedOut, timeout, signal, exitCodeName, exitCode, isCanceled});176 const message = `Command ${prefix}: ${joinedCommand}`;177178 if (error instanceof Error) {179 error.message = `${message}${error.message}`;179 error.message = `${message}\n${error.message}`;180 } else {181 error = new Error(message);182 }183
274 unmodified lines