Skip to content

Commit

Permalink
Merge pull request #94 from timrogers/timrogers/command-error-stack
Browse files Browse the repository at this point in the history
When an error is caught at the command level, log its stack trace
  • Loading branch information
timrogers committed Nov 27, 2023
2 parents 19e4263 + 00ae5bb commit ec936a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const presentError = (e: unknown): string => {

const actionErrorHandler = (error: Error): void => {
console.error(chalk.red(error.message));
console.error(error.stack);
process.exit(1);
};

Expand Down

0 comments on commit ec936a9

Please sign in to comment.