Project

General

Profile

Feature #6236 » standarderror.patch

regularfry (Alex Young), 03/31/2012 06:18 PM

View differences:

lib/webrick/server.rb
rescue Errno::EBADF, IOError => ex
# if the listening socket was closed in GenericServer#shutdown,
# IO::select raise it.
rescue Exception => ex
rescue StandardError => ex
msg = "#{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}"
@logger.error msg
rescue Exception => ex
@logger.error ex
raise
end
end
(1-1/2)