From 166f322861c7dec95f60a78b7d3dc47f52be6664 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 24 Jun 2019 00:25:58 +0200 Subject: [PATCH] make sure error is a string --- app/jobs/crossref_doi_by_id_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/crossref_doi_by_id_job.rb b/app/jobs/crossref_doi_by_id_job.rb index 40dc74e3c..73ff468be 100644 --- a/app/jobs/crossref_doi_by_id_job.rb +++ b/app/jobs/crossref_doi_by_id_job.rb @@ -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