Skip to content

Commit

Permalink
Add logger message when Beyond::Error response (ePages-de#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Unai Abrisketa authored Oct 18, 2019
1 parent 6819314 commit 9dad212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/beyond_api/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def handle_response(response, status, respond_with_true: false)
response = sanitize_response(response)
BeyondApi.configuration.object_struct_responses ? to_object_struct(response) : response
else
logger.error "[Beyond API] #{response}" if logger
BeyondApi::Error.new(response)
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/beyond_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BeyondApi
VERSION = "0.2.0.pre".freeze
VERSION = "0.2.1.pre".freeze
end

0 comments on commit 9dad212

Please sign in to comment.