mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
rescue error
This commit is contained in:
1 parent
b806a6afc5
commit
dc8b1e0741
1 file changed
+4
@@ -77,6 +77,10 @@ module Api
|
||||
with_urls: true,
|
||||
with_events: false,
|
||||
params:)
|
||||
rescue Submitters::NormalizeValues::BaseError => e
|
||||
Rollbar.warning(e) if defined?(Rollbar)
|
||||
|
||||
render json: { error: e.message }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
def submitter_params
|
||||
|
||||
Reference in new issue
Block a user