Skip to content

Commit

Permalink
fix(exceptions): improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalshaikh42 committed Oct 22, 2021
1 parent e70ae45 commit 083091e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/shared/exceptions/filters/src/lib/default.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ export class DefaultFilter implements ExceptionFilter {
Number.isInteger(exception.status) &&
'message' in exception
) {
status = exception.status.toString();
title = exception.message;
status = exception.status;
title = exception.error || exception.message;
detail = exception.message;

if (status === 413) {
detail = `The submitted ${FormatService.formatDigitalSize(
Expand Down

0 comments on commit 083091e

Please sign in to comment.