You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: tom[at]compton.nu [Submitted to the original trac issue database at 11.06pm, Saturday, 9th May 2009]
If a model validation fails then ActiveRecord::RecordInvalid is thrown and the rails default rescue handler converts that to a 422 HTTP response. We should catch it in the upload controller method (and anywhere else that saves a model...) and return a sensible error.
The text was updated successfully, but these errors were encountered:
Reporter: tom[at]compton.nu
[Submitted to the original trac issue database at 11.06pm, Saturday, 9th May 2009]
If a model validation fails then ActiveRecord::RecordInvalid is thrown and the rails default rescue handler converts that to a 422 HTTP response. We should catch it in the upload controller method (and anywhere else that saves a model...) and return a sensible error.
The text was updated successfully, but these errors were encountered: