r84306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84305‎ | r84306 | r84307 >
Date:03:57, 19 March 2011
Author:neilk
Status:deferred
Tags:
Comment:
debug log default error message
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.Api.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.Api.js
@@ -47,8 +47,7 @@
4848
4949 // caller can supply handlers for http transport error or api errors
5050 err: function( code, result ) {
51 - var errorMsg = "mw.Api error: " + code;
52 - mw.log( _method + errorMsg );
 51+ mw.log( "mw.Api error: " + code, 'debug' );
5352 },
5453
5554 timeout: 30000, /* 30 seconds */
@@ -129,6 +128,7 @@
130129 ajaxOptions.err( 'http', { xhr: xhr, textStatus: textStatus, exception: exception } );
131130 };
132131
 132+
133133 /* success just means 200 OK; also check for output and API errors */
134134 ajaxOptions.success = function( result ) {
135135 if ( mw.isEmpty( result ) ) {

Status & tagging log