lib/mangopay/errors.rb in mangopay-3.14.0 vs lib/mangopay/errors.rb in mangopay-3.15.0

- old
+ new

@@ -46,18 +46,18 @@ @details['Url'] = request_url.request_uri super(message) if message end - def type; @details['Type']; end + def type; @details['Type'] || @details['type']; end def error; @details['error']; end def errors; @details['errors'] || error; end def message; if error msg = error else - msg = @details['Message'] + msg = @details['Message'] || @details['message'] msg += errors.sort.map {|k,v| " #{k}: #{v}"}.join if (errors && errors.is_a?(Hash)) msg end end