jenkins-bot has submitted this change and it was merged.
Change subject: Convert errors to text before logging
......................................................................
Convert errors to text before logging
Otherwise we will only get {}
Change-Id: I3a133fd17d9db6ae2fe393a27d122c539a12196e
---
M modules/publish/ext.cx.publish.js
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Santhosh: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/publish/ext.cx.publish.js
b/modules/publish/ext.cx.publish.js
index cf11991..6d2411a 100644
--- a/modules/publish/ext.cx.publish.js
+++ b/modules/publish/ext.cx.publish.js
@@ -303,6 +303,10 @@
error: details
};
+ if ( details.exception instanceof Error ) {
+ details.exception = details.exception.toString();
+ }
+
mw.hook( 'mw.cx.translation.publish.error' ).fire(
mw.cx.sourceLanguage,
mw.cx.targetLanguage,
--
To view, visit https://gerrit.wikimedia.org/r/232477
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3a133fd17d9db6ae2fe393a27d122c539a12196e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits