lib/ff/ruby/server/sdk/connector/harness_connector.rb in ff-ruby-server-sdk-1.3.2 vs lib/ff/ruby/server/sdk/connector/harness_connector.rb in ff-ruby-server-sdk-1.4.0
- old
+ new
@@ -44,9 +44,14 @@
if e.message.include? "the server returns an error"
# NOTE openapi-generator 5.2.1 has a bug where exceptions don't contain any useful information and we can't
# determine if a timeout has occurred. This is fixed in 6.3.0 but requires Ruby version to be increased to 2.7
# https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.3.0
@config.logger.warn "OpenapiClient::ApiError [\n\n#{e}\n]"
+
+ if e.code
+ return e.code
+ end
+
return -1
end
log_error("auth", e)
return e.code
\ No newline at end of file