Skip to content

Commit

Permalink
Apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Jul 29, 2024
1 parent ef5521e commit 74fa860
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/workflow/src/ErrorReporterProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const instance: ErrorReporter = {
let e = error;
do {
const meta = e instanceof ApplicationError ? e.extra : undefined;
Logger.error(`${e.constructor.name}: ${e.message}\n${inDevelopment ? e.stack : ''}`, meta);
if (inDevelopment) console.log(e, meta);
else Logger.error(`${e.constructor.name}: ${e.message}`, meta);
e = e.cause as Error;
} while (e);
}
Expand Down

0 comments on commit 74fa860

Please sign in to comment.