mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +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
|
// Reached the end of the doc / start of internal list, stop searching
|
||||||
return offset < endOffset;
|
return offset < endOffset;
|
||||||
} );
|
} );
|
||||||
} catch ( e ) {
|
} catch ( err ) {
|
||||||
// TransactionSquasher can sometimes throw errors; until T333710 is
|
// TransactionSquasher can sometimes throw errors; until T333710 is
|
||||||
// fixed just count this as not needing a reference.
|
// fixed just count this as not needing a reference.
|
||||||
|
mw.errorLogger.logError( err, 'error.visualeditor' );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return ranges.some( function ( range ) {
|
return ranges.some( function ( range ) {
|
||||||
|
|
Loading…
Reference in a new issue