[Rt-commit] r5979 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Mon Sep 18 12:01:57 EDT 2006


Author: ruz
Date: Mon Sep 18 12:01:55 2006
New Revision: 5979

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm

Log:
 r3770 at cubic-pc:  cubic | 2006-09-18 20:04:59 +0400
 * Handle Apache::Session database errors a bit more gracefully
 ** merge revision 5888 from 3.6-RELEASE


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web/Session.pm	Mon Sep 18 12:01:55 2006
@@ -220,16 +220,13 @@
 
     local $@;
     eval { tie %session, $class, $id, $attrs };
-    if( $@ ) {
-        if ( $@ =~ /Object does not/i ) {
-            tie %session, $class, undef, $attrs;
-        } else {
-            die loc("RT couldn't store your session.") . "\n"
-              . loc("This may mean that that the directory '[_1]' isn't writable or a database table is missing or corrupt.",
-                $RT::MasonSessionDir)
-              . "\n\n"
-              . $@;
-        }
+    eval { tie %session, $class, undef, $attrs } if $@;
+    if ( $@ ) {
+        die loc("RT couldn't store your session.") . "\n"
+          . loc("This may mean that that the directory '[_1]' isn't writable or a database table is missing or corrupt.",
+            $RT::MasonSessionDir)
+          . "\n\n"
+          . $@;
     }
 
     return tied %session;


More information about the Rt-commit mailing list