mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
rescue validation errors
This commit is contained in:
1 parent
ce9ab691ec
commit
acce6195b0
2 files changed
+3
-2
No files matched your search
@@ -98,7 +98,7 @@ module Api
|
||||
|
||||
render json: build_create_json(submissions)
|
||||
rescue Submitters::NormalizeValues::BaseError, Submissions::CreateFromSubmitters::BaseError,
|
||||
DownloadUtils::UnableToDownload => e
|
||||
Submitters::SubmitValues::ValidationError, DownloadUtils::UnableToDownload => e
|
||||
Rollbar.warning(e) if defined?(Rollbar)
|
||||
|
||||
render json: { error: e.message }, status: :unprocessable_content
|
||||
|
||||
Reference in new issue
Block a user