Skip to content

Commit bb1e5a8

Browse files
committed
fix: error rendering
1 parent e4cf430 commit bb1e5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ function outputFormatterError(err: any): string {
469469
if (err.data && !utils.isEmptyObject(err.data)) {
470470
output += `${indent}data\t${JSON.stringify(err.data)}\n`;
471471
}
472-
if (err.cause && !utils.isEmptyObject(err.cause)) {
472+
if (err.cause) {
473473
output += `${indent}cause: `;
474474
if (err.cause instanceof ErrorPolykey) {
475475
err = err.cause;

0 commit comments

Comments
 (0)