Merge "VE integration: Remove "unrecoverable" errors"

This commit is contained in:
jenkins-bot 2022-07-20 13:58:01 +00:00 committed by Gerrit Code Review
commit 311e8874bc

View file

@ -14,11 +14,8 @@ mw.loader.using( 'ext.visualEditor.targetLoader' ).then( function () {
}; };
ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) { ve.init.mw.SpamBlacklistSaveErrorHandler.static.process = function ( data, target ) {
// Handle spam blacklist error from Extension:SpamBlacklist // Handle errors from Extension:SpamBlacklist
target.showSaveError( target.showSaveError( target.extractErrorMessages( data ) );
target.extractErrorMessages( data ),
false // prevents reapply
);
// Emit event for tracking. TODO: This is a bad design // Emit event for tracking. TODO: This is a bad design
target.emit( 'saveErrorSpamBlacklist' ); target.emit( 'saveErrorSpamBlacklist' );
}; };