Skip to content

Commit 9dad212

Browse files
author
Unai Abrisketa
authored
Add logger message when Beyond::Error response (#9)
1 parent 6819314 commit 9dad212

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/beyond_api/utils.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def handle_response(response, status, respond_with_true: false)
1010
response = sanitize_response(response)
1111
BeyondApi.configuration.object_struct_responses ? to_object_struct(response) : response
1212
else
13+
logger.error "[Beyond API] #{response}" if logger
1314
BeyondApi::Error.new(response)
1415
end
1516
end

lib/beyond_api/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module BeyondApi
2-
VERSION = "0.2.0.pre".freeze
2+
VERSION = "0.2.1.pre".freeze
33
end

0 commit comments

Comments
 (0)