mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "Log TransactionSquasher errors, in case any still occur"
This commit is contained in:
commit
8f1ed26431
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue