]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
issue #3261 -- fix generic exception handler to pass through generic exception info...
authorBrion Vibber <brion@pobox.com>
Tue, 26 Jul 2011 22:56:04 +0000 (15:56 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 26 Jul 2011 22:56:04 +0000 (15:56 -0700)
If any email issues remain, they should be treated specifically if special treatment is needed.

index.php

index 3534739bface4334914d14a07dbb700363d3f974..850208c9d1501a80337a7a8d568a85aa88100527 100644 (file)
--- a/index.php
+++ b/index.php
@@ -116,16 +116,14 @@ function handleError($error)
                 common_config('site', 'name'),
                 common_config('site', 'email')
             );
+
+            $dac = new DBErrorAction($msg, 500);
+            $dac->showPage();
         } else {
-            // TRANS: Error message.
-            $msg = _('An important error occured, probably related to email setup. '.
-                'Check logfiles for more info.'
-            );
+            $sac = new ServerErrorAction($error->getMessage(), 500, $error);
+            $sac->showPage();
         }
 
-        $dac = new DBErrorAction($msg, 500);
-        $dac->showPage();
-
     } catch (Exception $e) {
         // TRANS: Error message.
         echo _('An error occurred.');