Fix a bunch of Ruby warnings, including a bug in the not_found method

This commit is contained in:
Ben Hollis 2013-04-06 14:48:00 -07:00
parent 1d869b0c08
commit 397ccd2c1e
6 changed files with 10 additions and 10 deletions

View file

@ -149,7 +149,7 @@ module Middleman
begin
::WEBrick::HTTPServer.new(http_opts)
rescue Errno::EADDRINUSE => e
rescue Errno::EADDRINUSE
logger.error "== Port #{port} is unavailable. Either close the instance of Middleman already running on #{port} or start this Middleman on a new port with: --port=#{port.to_i+1}"
exit(1)
end