Skip to content

Commit

Permalink
make sure error is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 23, 2019
1 parent b7f7ca8 commit 166f322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/crossref_doi_by_id_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def perform(id)
if [200, 201].include?(response.status)
logger.info "DOI #{doi} created."
else
logger.warn "[Error for DOI #{doi}]: " + response.body["errors"]
logger.warn "[Error for DOI #{doi}]: " + response.body["errors"].inspect
end
end

Expand Down

0 comments on commit 166f322

Please sign in to comment.