Skip to content

Commit

Permalink
Always log full stack trace in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 7, 2023
1 parent d6fb53d commit b74844c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const run = async () => {
process.exit(totalErrorCount);
}
} catch (error: unknown) {
if (error instanceof Error && isKnownError(error)) {
if (!isDebug && error instanceof Error && isKnownError(error)) {
const knownError = getKnownError(error);
console.error(knownError.message);
if (hasCause(knownError)) console.error('Reason:', knownError.cause.message);
Expand Down

0 comments on commit b74844c

Please sign in to comment.