Skip to content

Commit

Permalink
Include stack trace in errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 30, 2023
1 parent d55316b commit 12fce88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/cli-implementation.js
Expand Up @@ -155,6 +155,6 @@ try {

console.log(`\n ${newPkg.name} ${newPkg.version} published 🎉`);
} catch (error) {
console.error(`\n${logSymbols.error} ${error.message}`);
console.error(`\n${logSymbols.error} ${error?.stack ?? error}`);
gracefulExit(1);
}

0 comments on commit 12fce88

Please sign in to comment.