Skip to content

Commit

Permalink
log error messages on doi create and update
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jan 6, 2021
1 parent 88843f7 commit 953c43c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/datacite_dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def create
status: :created,
location: @doi
else
# logger.error @doi.errors.inspect
logger.error @doi.errors.inspect
render json: serialize_errors(@doi.errors, uid: @doi.uid),
include: @include,
status: :unprocessable_entity
Expand Down Expand Up @@ -625,7 +625,7 @@ def update
render json: DataciteDoiSerializer.new(@doi, options).serialized_json,
status: exists ? :ok : :created
else
# logger.error @doi.errors.messages
logger.error @doi.errors.messages
render json: serialize_errors(@doi.errors.messages, uid: @doi.uid),
include: @include,
status: :unprocessable_entity
Expand Down

0 comments on commit 953c43c

Please sign in to comment.