From: Chris Prather Date: Tue, 3 Jul 2007 20:50:35 +0000 (+0000) Subject: better reporting X-Git-Tag: 0.01~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ee08a7fe4977bf81f59b1cd5e13ae59a16a6577e;p=gitmo%2FMooseX-Daemonize.git better reporting --- diff --git a/lib/MooseX/Daemonize.pm b/lib/MooseX/Daemonize.pm index d2cfa86..5abe924 100644 --- a/lib/MooseX/Daemonize.pm +++ b/lib/MooseX/Daemonize.pm @@ -57,7 +57,8 @@ sub check { if ( CORE::kill 0 => $pid ) { croak "$prog already running ($pid)."; } - carp "$prog not running but $pid exists. Perhaps it is stale?"; + carp "$prog not running but found pid ($pid)." + . "Perhaps the pid file (@{ [$self->pidfile] }) is stale?"; return 1; } return 0;