[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.8-127-g8df6a6a

? sunnavy sunnavy at bestpractical.com
Wed Aug 4 20:22:52 EDT 2010


The branch, 3.8-trunk has been updated
       via  8df6a6a85bf5b1c64294edd2c83b9c8b35982d50 (commit)
      from  6b676ab426d5bb56882a645bda7c30b431fa2b3d (commit)

Summary of changes:
 lib/RT/Util.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 8df6a6a85bf5b1c64294edd2c83b9c8b35982d50
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Aug 5 08:24:43 2010 +0800

    we have "System Error" category, use that instead

diff --git a/lib/RT/Util.pm b/lib/RT/Util.pm
index 3f48cf4..2346051 100644
--- a/lib/RT/Util.pm
+++ b/lib/RT/Util.pm
@@ -86,9 +86,9 @@ sub safe_run_child (&) {
             $dbh->{'InactiveDestroy'} = 0 if $dbh;
             $RT::Handle->{'DisconnectHandleOnDestroy'} = 1;
         }
-        $err = "Error just happened, please contact administrator:\n" . $err;
         $err =~ s/^Stack:.*$//ms;
-        die $err;
+        #TODO we need to localize this
+        die 'System Error: ' . $err;
     };
     return $want? (@res) : $res[0];
 }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list