Method: ConvertApi::ClientError#to_s
- Defined in:
- lib/convert_api/errors.rb
#to_s ⇒ Object
16 17 18 19 20 |
# File 'lib/convert_api/errors.rb', line 16 def to_s return "the server responded with status #{http_status}" unless json? "#{error_message} Code: #{code}. #{invalid_parameters}".strip end |