Use the way documented by IO::Socket::INET to get the error message after trying...
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / HTTP.pm
index 9a3b358..bacc6be 100644 (file)
@@ -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();