From: Florian Ragwitz Date: Wed, 4 Feb 2009 15:16:33 +0000 (+0000) Subject: Use the way documented by IO::Socket::INET to get the error message after trying... X-Git-Tag: 5.8000_06~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=41e1a0b023245a05ab2399fc5be2aada8b948fcc Use the way documented by IO::Socket::INET to get the error message after trying to create a listening socket. Closes RT#41828. --- diff --git a/lib/Catalyst/Engine/HTTP.pm b/lib/Catalyst/Engine/HTTP.pm index 9a3b358..bacc6be 100644 --- a/lib/Catalyst/Engine/HTTP.pm +++ b/lib/Catalyst/Engine/HTTP.pm @@ -216,7 +216,7 @@ sub run { ReuseAddr => 1, Type => SOCK_STREAM, ) - or die "Couldn't create daemon: $!"; + or die "Couldn't create daemon: $@"; $port = $daemon->sockport();