diff --git a/app/controllers/api/submitters_controller.rb b/app/controllers/api/submitters_controller.rb index bc1a962b..4a73a96d 100644 --- a/app/controllers/api/submitters_controller.rb +++ b/app/controllers/api/submitters_controller.rb @@ -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