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