Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass-through HttpError caught in multipart handler #867

Merged
merged 1 commit into from
Nov 18, 2023

Commits on Oct 13, 2023

  1. Pass-through HttpError caught in multipart handler

    - Consumers of express-openapi-validator have access to the custom error
      types via exported object: error (e.g. error.BadRequest).
    - If the multipart handler throws, for example from the multer storage
      engine, check whether the err instance is already an HttpError. If so,
      it can be passed-through as is. This is mostly useful for setting the
      HTTP status code.
    mdmower committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    9fa2e60 View commit details
    Browse the repository at this point in the history