Merge "SpecialRunJobs: delegate error handling to MWExceptionHandler"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 14 Apr 2016 21:13:44 +0000 (21:13 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 14 Apr 2016 21:13:44 +0000 (21:13 +0000)
includes/specials/SpecialRunJobs.php

index 2312f76..ce5533f 100644 (file)
@@ -94,8 +94,11 @@ class SpecialRunJobs extends UnlistedSpecialPage {
                                if ( strpos( $errstr, 'Cannot modify header information' ) !== false ) {
                                        return true; // bug T115413
                                }
-                               // Delegate unhandled errors to the default handlers
-                               return false;
+                               // Delegate unhandled errors to the default MediaWiki handler
+                               // so that fatal errors get proper logging (T89169)
+                               return call_user_func_array(
+                                       'MWExceptionHandler::handleError', func_get_args()
+                               );
                        } );
                }