We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60f43e6 + 21e909d commit a905aeaCopy full SHA for a905aea
1 file changed
lib/code/object/http.rb
@@ -206,9 +206,9 @@ def self.code_fetch(*arguments, redirects: 10)
206
::Net::OpenTimeout,
207
::Net::ReadTimeout,
208
::Errno::ETIMEDOUT
209
- raise(::Code::Error.new("http timeout"))
+ raise ::Code::Error, "http timeout"
210
rescue OpenSSL::SSL::SSLError, IOError, EOFError
211
- raise(::Code::Error.new("http error"))
+ raise ::Code::Error, "http error"
212
end
213
214
code = response.code.to_i
0 commit comments