Project

General

Profile

Feature #6236 ยป standarderror.patch

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

View differences:

lib/webrick/server.rb
111 111
          rescue Errno::EBADF, IOError => ex
112 112
            # if the listening socket was closed in GenericServer#shutdown,
113 113
            # IO::select raise it.
114
          rescue Exception => ex
114
          rescue StandardError => ex
115 115
            msg = "#{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}"
116 116
            @logger.error msg
117
          rescue Exception => ex
118
            @logger.error ex
119
            raise
117 120
          end
118 121
        end
119 122