Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Session-Flex CPAN distribution.

Report information
The Basics
Id: 15318
Status: new
Priority: 0/
Queue: Catalyst-Plugin-Session-Flex

People
Owner: Nobody in particular
Requestors: drew [...] drewtaylor.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Include eval error message when die'ing
I just upgraded to mysql5 today, and was initially getting an error that I couldn't create a new session. On line 167, when die'ing if the session can't be created you are not including the error message from the eval. Here's a simple patch to fix that. diff -u Flex.pm.orig Flex.pm --- Flex.pm.orig 2005-10-26 12:24:00.000000000 -0400 +++ 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