Skip to content

Commit

Permalink
Merge pull request #4869 from bgeuken/update_test_for_branch_forwarding
Browse files Browse the repository at this point in the history
[frontend] Fix test for forwarding bs requests
  • Loading branch information
ChrisBr committed Apr 17, 2018
2 parents b19bfac + 3f16463 commit f4ca0a1
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 175 deletions.
1 change: 0 additions & 1 deletion src/api/app/controllers/webui/request_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ def forward_request_to(fwd)
end
rescue APIException, ActiveRecord::RecordInvalid => e
error_string = "Failed to forward BsRequest: #{@bs_request.number}, error: #{e}, request: #{req.inspect}, params: #{params.inspect}"
error_string << ", action: #{action.inspect}" if defined?(action)
error_string << ", Record errors: #{e.record.errors}" if e.respond_to?(:record)
Airbrake.notify(error_string)
flash[:error] = "Unable to forward submit request: #{e.message}"
Expand Down
Loading

0 comments on commit f4ca0a1

Please sign in to comment.