https://bugzilla.wikimedia.org/show_bug.cgi?id=42949
Web browser: ---
Bug ID: 42949
Summary: ApiMain assumes MWException
Product: MediaWiki
Version: 1.21-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
ApiMain.php, line 373:
} catch ( Exception $e ) {
line 380:
if ( $wgLogExceptionBacktrace ) {
wfDebugLog( 'exception', $e->getLogMessage() . "\n" .
$e->getTraceAsString() . "\n" );
} else {
wfDebugLog( 'exception', $e->getLogMessage() );
}
Since getLogMessage() is defined MWException, if Exception caught is not
MWException (which is allowed by catch), we get a call to undefined method
fatal.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l