Skip to content

Commit

Permalink
format error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 9, 2021
1 parent 812afe7 commit 136666a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def as_indexed_json(_options = {})
"claimed" => claimed,
"created" => created,
"updated" => updated,
"user" => user,
"user" => user
}
end

Expand Down Expand Up @@ -207,7 +207,7 @@ def process_data(options = {})
# send notification to Sentry
# Raven.capture_exception(RuntimeError.new(result.body["errors"].first["title"])) if ENV["SENTRY_DSN"]

logger.error "[Error] #{uid}#{doi}: #{format_error_message(result.body["errors"]).first["title"]}"
logger.error "[Error] #{uid}#{doi}: #{format_error_message(result.body["errors"]).inspect}"

error!
elsif result.body["notification"]
Expand Down

0 comments on commit 136666a

Please sign in to comment.