lib/hello_sign/client.rb in hellosign-ruby-sdk-3.0.15 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.0.17

- old
+ new

@@ -164,10 +164,11 @@ connection end def validate(response) if response.status >= 400 - raise ERRORS[response.status].new error_message(response) + error_class = ERRORS[response.status] || HelloSign::Error::UnknownError + raise error_class.new error_message(response) end end def parse(response) if response['content-type'] == 'application/pdf'