2 parents 5a4528c + 5666f2d commit 968bc8cCopy full SHA for 968bc8c
1 file changed
lib/webrick/server.rb
@@ -102,7 +102,7 @@ def initialize(config={}, default=Config::General)
102
@listeners = []
103
@shutdown_pipe = nil
104
unless @config[:DoNotListen]
105
- raise ArgumentError, "Port must an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s
+ raise ArgumentError, "Port must be an integer" unless @config[:Port].to_s == @config[:Port].to_i.to_s
106
107
@config[:Port] = @config[:Port].to_i
108
if @config[:Listen]
0 commit comments