Skip to content

Commit 12fce88

Browse files
committed
Include stack trace in errors
1 parent d55316b commit 12fce88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/cli-implementation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,6 @@ try {
155155

156156
console.log(`\n ${newPkg.name} ${newPkg.version} published 🎉`);
157157
} catch (error) {
158-
console.error(`\n${logSymbols.error} ${error.message}`);
158+
console.error(`\n${logSymbols.error} ${error?.stack ?? error}`);
159159
gracefulExit(1);
160160
}

0 commit comments

Comments
 (0)