lib/rack/oauth2/client/error.rb in rack-oauth2-1.5.0 vs lib/rack/oauth2/client/error.rb in rack-oauth2-1.5.1
- old
+ new
@@ -4,11 +4,12 @@
class Error < StandardError
attr_accessor :status, :response
def initialize(status, response)
@status = status
@response = response
- super response[:error_description]
+ message = [response[:error], response[:error_description]].compact.join(' :: ')
+ super message
end
end
end
end
-end
\ No newline at end of file
+end