jembi / openhim-mediator-mapping

An OpenHIM mediator for mapping incoming content to a different format
https://jembi.github.io/openhim-mediator-mapping/
MIT License
3 stars 7 forks source link

OHM-885 Fix to return response body when exception is thrown #23

Closed Zooloo2014 closed 5 years ago

Zooloo2014 commented 5 years ago

Prior to this change, validator was returning an empty body when validation processing failed

Assigning the error object that the exception handler catches results in an empty response body. This change adds the error message to the response body when a validation exception causes a 4xx response to be returned

OHM-885