mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-23 15:57:15 +00:00
Log realtime preview errors to console
Bug: T303545 Change-Id: Iaa23b85eeb8d9951cbbbf350e55da006d49c84fa
This commit is contained in:
parent
07423d1a9f
commit
cdd01171cc
|
@ -153,6 +153,7 @@ RealtimePreview.prototype.doRealtimePreview = function () {
|
|||
loadingSelectors: loadingSelectors
|
||||
} ).fail( function ( code, result ) {
|
||||
this.showError( ( new mw.Api() ).getErrorMessage( result ) );
|
||||
mw.log.error( 'WikiEditor realtime preview error', result );
|
||||
}.bind( this ) ).always( function () {
|
||||
this.twoPaneLayout.getPane2().removeClass( 'ext-WikiEditor-twopanes-loading' );
|
||||
this.isPreviewing = false;
|
||||
|
|
Loading…
Reference in a new issue