[Catalyst] [PATCH] Catalyst::Plugin::Session::Flex
Drew Taylor
taylor.andrew.j at gmail.com
Wed Oct 26 18:29:22 CEST 2005
After upgrading to mysql5 today I ran into a problem when trying to create a
session. Session::Flex was not passing along the error message when it was
die'ing. Here's a simple patch to include the message.
BTW, Session::Flex had nothing to do with my problem - I needed to recompile
DBD::mysql - but it did add a couple minutes to the process. This module
works great - no problems.
diff -u Flex.pm.orig Flex.pm <http://Flex.pm>
--- Flex.pm.orig 2005-10-26 12:24:00.000000000 -0400
+++ Flex.pm <http://Flex.pm> 2005-10-26 12:24:09.000000000 -0400
@@ -164,7 +164,7 @@
$c->log->debug(qq/Created session "$sid"/) if $c->debug;
};
if($@) {
- die("Failed to create new session");
+ die("Failed to create new session: $@");
}
# Load in the session id.
$c->{session} = $session;
Drew
--
----------------------------------------------------------------
Drew Taylor * Web development & consulting
Email: drew at drewtaylor.com * Site implementation & hosting
Web : www.drewtaylor.com <http://www.drewtaylor.com> *
perl/mod_perl/DBI/mysql/postgres
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20051026/7912d662/attachment.htm
More information about the Catalyst
mailing list