mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
report errors
This commit is contained in:
1 parent
2a839951b4
commit
84b762b529
1 file changed
+2
@@ -94,6 +94,8 @@ module Api
|
||||
|
||||
render json: submissions.flat_map(&:submitters)
|
||||
rescue Submitters::NormalizeValues::UnknownFieldName, Submitters::NormalizeValues::UnknownSubmitterName => e
|
||||
Rollbar.error(e) if defined?(Rollbar)
|
||||
|
||||
render json: { error: e.message }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user