Skip to content

Commit feb68d5

Browse files
committed
fixup! util: always visualize cause property in errors during inspection
Signed-off-by: Ruben Bridgewater <[email protected]>
1 parent cd25c4d commit feb68d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/util/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ function formatError(err, constructor, tag, ctx, keys) {
12981298
}
12991299
}
13001300
} else {
1301-
newStack += lines.join('\n');
1301+
newStack += `\n${lines.join('\n')}`;
13021302
}
13031303
stack = newStack;
13041304
}

0 commit comments

Comments
 (0)