Skip to content

Commit

Permalink
Fixes #36904 - Better handling of tailoring file errors
Browse files Browse the repository at this point in the history
on create
  • Loading branch information
adamruzicka committed Nov 8, 2023
1 parent ce529b9 commit 7caf2cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/tailoring_files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7caf2cf

Please sign in to comment.