We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c638d commit 89ca41bCopy full SHA for 89ca41b
src/utils/utils.ts
@@ -450,9 +450,6 @@ function outputFormatterError(err: any): string {
450
} else {
451
output += '\n';
452
}
453
- if (err.stack) {
454
- output += `${indent}stack: ${JSON.stringify(err.stack)}\n`;
455
- }
456
output += `${indent}cause: `;
457
err = err.cause;
458
} else if (err instanceof ErrorPolykey) {
@@ -485,6 +482,13 @@ function outputFormatterError(err: any): string {
485
482
486
483
break;
487
484
+ } else if (err instanceof Error) {
+ output += `${err.name}`;
+ if (err.message && err.message !== '') {
488
+ output += `: ${err.message}`;
489
+ }
490
+ output += '\n';
491
+ break;
492
493
output += composeErrorMessage(err);
494
if (err.message && err.message !== '') {
0 commit comments