mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Fix logging of event_action.saveFailure.message for responseUnknown"
This commit is contained in:
commit
d6ec1ed86f
|
@ -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 );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue