mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 17:50:44 +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
|
loadingSelectors: loadingSelectors
|
||||||
} ).fail( function ( code, result ) {
|
} ).fail( function ( code, result ) {
|
||||||
this.showError( ( new mw.Api() ).getErrorMessage( result ) );
|
this.showError( ( new mw.Api() ).getErrorMessage( result ) );
|
||||||
|
mw.log.error( 'WikiEditor realtime preview error', result );
|
||||||
}.bind( this ) ).always( function () {
|
}.bind( this ) ).always( function () {
|
||||||
this.twoPaneLayout.getPane2().removeClass( 'ext-WikiEditor-twopanes-loading' );
|
this.twoPaneLayout.getPane2().removeClass( 'ext-WikiEditor-twopanes-loading' );
|
||||||
this.isPreviewing = false;
|
this.isPreviewing = false;
|
||||||
|
|
Loading…
Reference in a new issue