Skip to content

Commit

Permalink
Merge branch 'hspazio-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjoh committed Feb 9, 2017
2 parents b853e3b + aec9328 commit 8e54675
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ruby_outlook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def make_api_call(method, url, token, params = nil, payload = nil)
end

if response.status >= 300
return JSON.dump({ 'ruby_outlook_error' => response.status})
error_info = response.body.empty? ? '' : JSON.parse(response.body)
return JSON.dump({
'ruby_outlook_error' => response.status,
'ruby_outlook_response' => error_info })
end

response.body
Expand Down

0 comments on commit 8e54675

Please sign in to comment.