Mattflaschen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/63260


Change subject: Preserve exception when logging, as suggested by S.
......................................................................

Preserve exception when logging, as suggested by S.

Change-Id: I6a9f189c3d7d515b530cdc3f811d0b05c8230529
---
M modules/ext.guidedTour.lib.js
1 file changed, 6 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GuidedTour 
refs/changes/60/63260/1

diff --git a/modules/ext.guidedTour.lib.js b/modules/ext.guidedTour.lib.js
index cac98b0..4f6cf65 100644
--- a/modules/ext.guidedTour.lib.js
+++ b/modules/ext.guidedTour.lib.js
@@ -748,8 +748,12 @@
                                                        resume();
                                                }
                                        })
-                                       .fail( function () {
-                                               mw.log( 'Failed to load tour ' 
+ tourName );
+                                       .fail( function ( jQXHR, settings, 
exception ) {
+                                               var message = ['Failed to load 
tour ' + tourName];
+                                               if ( exception ) {
+                                                       message.push( '\n', 
exception );
+                                               }
+                                               mw.log.apply( null, message );
                                        });
                        }
                },

-- 
To view, visit https://gerrit.wikimedia.org/r/63260
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a9f189c3d7d515b530cdc3f811d0b05c8230529
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GuidedTour
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to