Permalink
Browse files

Change exception message

  • Loading branch information...
1 parent 8373dcb commit f8ec443ca1f5afbcd1055dccf4d134270d46830f @camelmasa camelmasa committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/faraday/response/raise_octokit_error.rb
@@ -34,7 +34,7 @@ def error_message(response)
if body.is_a?(String)
body = MultiJson.load(body, :symbolize_keys => true)
end
- ": #{body[:error] || body[:message] || ''}"
+ ": #{body[:errors].map{|e|e[:message]}.join(', ') || body[:error] || body[:message] || ''}"
else
''
end

0 comments on commit f8ec443

Please sign in to comment.