Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/322770
Change subject: Include getPublicLogMessage() in double-exception messages
......................................................................
Include getPublicLogMessage() in double-exception messages
Change-Id: I364e237f859d65fdcc29025c63c90ac2e0b96718
---
M includes/exception/MWExceptionRenderer.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/70/322770/1
diff --git a/includes/exception/MWExceptionRenderer.php
b/includes/exception/MWExceptionRenderer.php
index 8fdc417..017553e 100644
--- a/includes/exception/MWExceptionRenderer.php
+++ b/includes/exception/MWExceptionRenderer.php
@@ -60,7 +60,9 @@
MWExceptionHandler::getLogMessage( $eNew ) .
"\nBacktrace:\n" .
MWExceptionHandler::getRedactedTraceAsString( $eNew );
} else {
- $message .= "Exception caught inside
exception handler.\n\n" .
+ $message .= 'Original exception: ' .
+
MWExceptionHandler::getPublicLogMessage( $e ) .
+ $message .= "\n\nException caught
inside exception handler.\n\n" .
"Set \$wgShowExceptionDetails =
true; at the bottom of LocalSettings.php " .
"to show detailed debugging
information.";
}
--
To view, visit https://gerrit.wikimedia.org/r/322770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I364e237f859d65fdcc29025c63c90ac2e0b96718
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits