diff --git a/modules/editcheck/init.js b/modules/editcheck/init.js index c70717a51e..3124d9166f 100644 --- a/modules/editcheck/init.js +++ b/modules/editcheck/init.js @@ -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 ) {