diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTargetEvents.js b/modules/ve-mw/init/ve.init.mw.ArticleTargetEvents.js index 1a58ce2dd8..7cd65fe043 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTargetEvents.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTargetEvents.js @@ -150,8 +150,8 @@ ve.init.mw.ArticleTargetEvents.prototype.trackSaveError = function ( type ) { type: typeMap[ type ] || 'responseUnknown', timing: ve.now() - this.timings.saveInitiated + ( this.timings.serializeForCache || 0 ) }; - if ( type === 'unknown' && failureArguments[ 1 ] ) { - data.message = failureArguments[ 1 ]; + if ( type === 'unknown' && failureArguments[ 0 ] ) { + data.message = failureArguments[ 0 ]; } ve.track( 'mwedit.saveFailure', data ); };