Skip to content

Commit

Permalink
improve error retrieval for prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 6, 2023
1 parent 64d22c7 commit 7949526
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/src/filters/all-exceptions.exception.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export class AllExceptionsFilter implements ExceptionFilter {
if (['development', 'test'].includes(config.util.getEnv('NODE_ENV'))) {
errorData.meta.rawError = exception;
errorData.meta.stack = exception.stack;
} else {
errorData.meta.rawError = exception;
}

if (status >= 500) {
Expand Down

0 comments on commit 7949526

Please sign in to comment.