lib/rack_check/spec/env.rb in rack_check-0.2.3 vs lib/rack_check/spec/env.rb in rack_check-0.2.4
- old
+ new
@@ -8,11 +8,10 @@
}
def with_server(ru_file)
yield start_server(ru_file)
rescue HTTP::ConnectionError => e
- e.message = "#{e.message}\n\nServer error:\n#{@server&.errors}"
- raise e
+ raise e, "#{e.message}\n\nServer error:\n#{@server&.errors}", e.backtrace
ensure
stop_server
end
def start_server(ru_file)