Skip to content

Commit

Permalink
fix: missing errors in error mapper (#6764)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinHuiqing authored Oct 3, 2023
1 parent 1f91bba commit 1f882da
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ import {
} from '../../spcp/spcp.errors'
import { MissingUserError } from '../../user/user.errors'
import {
AttachmentTooLargeError,
ConflictError,
InvalidEncodingError,
InvalidFileExtensionError,
ProcessingError,
ResponseModeError,
SubmissionNotFoundError,
Expand Down Expand Up @@ -205,6 +207,8 @@ const errorMapper: MapRouteError = (
}
case ValidateFieldError:
case DatabaseValidationError:
case InvalidFileExtensionError:
case AttachmentTooLargeError:
case ProcessingError:
return {
statusCode: StatusCodes.BAD_REQUEST,
Expand Down

0 comments on commit 1f882da

Please sign in to comment.