From: Tomas Doran Date: Fri, 15 Jul 2011 08:48:16 +0000 (+0100) Subject: Make that a warning when in debug mode X-Git-Tag: 5.80033~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=0f12bef2b5b4295e31f64ff48a84dc3a015fdcbf Make that a warning when in debug mode --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index a442f6b..793591d 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -93,7 +93,11 @@ sub finalize_cookies { -httponly => $val->{httponly} || 0, ) ); - next if(!defined $cookie); # warn? + if (!defined $cookie) { + $c->log->warn("undef passed in '$name' cookie value - not setting cookie") + if $c->debug; + next; + } push @cookies, $cookie->as_string; }