add download utils

This commit is contained in:
Pete Matsyburka authored and Oleksandr Turchyn committed 2024-09-09 13:57:46 +03:00
1 parent 71b8cc7172
commit 5a1efd0e27
5 files changed
+37 -22

No files matched your search

@@ -80,7 +80,7 @@ module Api
end
render json: build_create_json(submissions)
rescue Submitters::NormalizeValues::BaseError => e
rescue Submitters::NormalizeValues::BaseError, DownloadUtils::UnableToDownload => e
Rollbar.warning(e) if defined?(Rollbar)
render json: { error: e.message }, status: :unprocessable_entity