jenkins-bot has submitted this change and it was merged.
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, 7 insertions(+), 2 deletions(-)
Approvals:
Spage: Checked; Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/ext.guidedTour.lib.js b/modules/ext.guidedTour.lib.js
index a4c13c9..041400d 100644
--- a/modules/ext.guidedTour.lib.js
+++ b/modules/ext.guidedTour.lib.js
@@ -704,8 +704,13 @@
resume();
}
})
- .fail( function () {
- mw.log( 'Failed to load tour '
+ tourName );
+ .fail( function ( jQXHR, settings,
exception ) {
+ var message = 'Failed to load
tour ' + tourName;
+ if ( exception ) {
+ mw.log( message, '\n',
exception );
+ } else {
+ mw.log( message );
+ }
});
}
},
--
To view, visit https://gerrit.wikimedia.org/r/63260
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6a9f189c3d7d515b530cdc3f811d0b05c8230529
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/GuidedTour
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: Spage <[email protected]>
Gerrit-Reviewer: Swalling <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits