Skip to content

Commit d1a92f7

Browse files
committed
fix the wrong variable being sent to the exceptionnotifier when an unexpected error occurs handing DOI's
1 parent 987ad29 commit d1a92f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/publication.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def fetch_pubmed_or_doi_result(pubmed_id, doi)
471471
@error = 'The DOI resolved to an unsupported resource type.'
472472
rescue RuntimeError => e
473473
@error = 'There was a problem contacting the DOI query service. Please add the publication manually instead.'
474-
Seek::Errors::ExceptionForwarder.send_notification(exception, data: {message: "Problem fetching DOI #{doi} : #{e.message}"})
474+
Seek::Errors::ExceptionForwarder.send_notification(e, data: {message: "Problem fetching DOI #{doi} : #{e.message}"})
475475
end
476476
else
477477
@error = 'Please enter either a DOI or a PubMed ID for the publication.'

0 commit comments

Comments
 (0)