Merge "Fix logging of event_action.saveFailure.message for responseUnknown"

This commit is contained in:
jenkins-bot 2016-03-10 21:22:37 +00:00 committed by Gerrit Code Review
commit d6ec1ed86f

View file

@ -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 );
};