diff --git a/app/controllers/tailoring_files_controller.rb b/app/controllers/tailoring_files_controller.rb index 1018e882..db984206 100644 --- a/app/controllers/tailoring_files_controller.rb +++ b/app/controllers/tailoring_files_controller.rb @@ -24,6 +24,9 @@ def create else process_error end + rescue RestClient::Exception => e + @tailoring_file.errors.add(:scap_file, :invalid, message: e.http_body) + process_error end def edit