r26140 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26139‎ | r26140 | r26141 >
Date:04:28, 26 September 2007
Author:amidaniel
Status:old
Tags:
Comment:
(bug 11404) API: Provide name of exception caught in error code field of internal api error messages.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiMain.php
@@ -263,7 +263,7 @@
264264 // Something is seriously wrong
265265 //
266266 $errMessage = array (
267 - 'code' => 'internal_api_error',
 267+ 'code' => 'internal_api_error_'. get_class($e),
268268 'info' => "Exception Caught: {$e->getMessage()}"
269269 );
270270 ApiResult :: setContent($errMessage, "\n\n{$e->getTraceAsString()}\n\n");
Index: trunk/phase3/RELEASE-NOTES
@@ -81,6 +81,8 @@
8282 help document.
8383 * (bug 11405) Expand templates implementation in the API
8484 * (bug 11218) Add option to feedwatchlist to display multiple revisions for each page.
 85+* (bug 11404) Provide name of exception caught in error code field of internal api
 86+ error messages.
8587
8688 === Languages updated in 1.12 ===
8789

Follow-up revisions

RevisionCommit summaryAuthorDate
r26257Merged revisions 26134-26247 via svnmerge from...david19:06, 30 September 2007

Status & tagging log