Merge "Log TransactionSquasher errors, in case any still occur"

This commit is contained in:
jenkins-bot 2023-04-27 15:23:01 +00:00 committed by Gerrit Code Review
commit 8f1ed26431

View file

@ -18,9 +18,10 @@ mw.editcheck.doesAddedContentNeedReference = function ( documentModel ) {
// Reached the end of the doc / start of internal list, stop searching
return offset < endOffset;
} );
} catch ( e ) {
} catch ( err ) {
// TransactionSquasher can sometimes throw errors; until T333710 is
// fixed just count this as not needing a reference.
mw.errorLogger.logError( err, 'error.visualeditor' );
return false;
}
return ranges.some( function ( range ) {