Skip to content

Commit

Permalink
Ignore signer related backend exceptions
Browse files Browse the repository at this point in the history
Those are content problems, developers can't do anything about them.
  • Loading branch information
hennevogel committed May 25, 2021
1 parent 1379e72 commit 42ec654
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/config/initializers/airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def ignore_by_backend_400_message?(message)
'<summary>broken link in', '<summary>bad files', 'does not exist</summary>',
'is illegal</summary>', '<summary>service in progress</summary>', '<summary>service error',
'<summary>could not apply patch', '<summary>illegal characters</summary>',
'<summary>repoid is empty</summary>', '<summary>packid is empty</summary>'].freeze
'<summary>repoid is empty</summary>', '<summary>packid is empty</summary>',
'<summary>bad private key</summary>', '<summary>pubkey is already expired</summary>',
'<summary>not a RSA pubkey</summary>', ' <summary>self-sig does not expire</summary>'].freeze
messages_to_ignore.each do |ignored_error_message|
return true if message.include?(ignored_error_message)
end
Expand Down

0 comments on commit 42ec654

Please sign in to comment.