diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-01-24 02:05:05 +0300 |
---|---|---|
committer | Dennis Schubert <mail@dennis-schubert.de> | 2016-01-24 09:14:58 +0300 |
commit | 44ab0df02b1ab165373904c5ec75454fc76d54b4 (patch) | |
tree | a61ccb39cf4801be368e7619ae2bcf8cda403664 /app/workers/base.rb | |
parent | 0213bbc02813d47f661f9a955f479d4989397a01 (diff) |
fix suppress_annoying_errors
closes #6653
Diffstat (limited to 'app/workers/base.rb')
-rw-r--r-- | app/workers/base.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/workers/base.rb b/app/workers/base.rb index d410a103d..b8a26d31e 100644 --- a/app/workers/base.rb +++ b/app/workers/base.rb @@ -24,10 +24,10 @@ module Workers logger.warn "error on receive: #{e.class}" rescue ActiveRecord::RecordInvalid => e logger.warn "failed to save received object: #{e.record.errors.full_messages}" - raise e unless %w( - "already been taken" + raise e unless [ + "already been taken", "is ignored by the post author" - ).any? {|reason| e.message.include? reason } + ].any? {|reason| e.message.include? reason } end end end |