lib/uatu/response.rb in uatu-marvel-0.0.1.1 vs lib/uatu/response.rb in uatu-marvel-0.0.2

- old
+ new

@@ -14,10 +14,10 @@ parsed_body = JSON.parse(body) code = parsed_body['code'] message = parsed_body['message'] || parsed_body['status'] unless code.to_i == 200 - raise Uatu::Error::ClientError.new "#{code} - #{message}\n ", {body: body, headers: headers} + raise Uatu::Error::ClientError.new "- Error code: #{code}\n- Message: #{message}\n ", {body: body, headers: headers} end end end \ No newline at end of file