Nikerabbit has uploaded a new change for review. https://gerrit.wikimedia.org/r/206096
Change subject: Fix unknown error logging ...................................................................... Fix unknown error logging Instead of concatenating an object to a string, just pass the object. Bug: T96660 Change-Id: I2e16a0294c28d6676dceb91a3020edf40fda08b3 --- M modules/publish/ext.cx.publish.js 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/96/206096/1 diff --git a/modules/publish/ext.cx.publish.js b/modules/publish/ext.cx.publish.js index dc76dd4..c4bc447 100644 --- a/modules/publish/ext.cx.publish.js +++ b/modules/publish/ext.cx.publish.js @@ -63,7 +63,7 @@ } ); } // Any other failure - self.onFail( 'cxpublish', '[CX] Unexpected error while publishing: ' + response.cxpublish ); + self.onFail( 'cxpublish', response.cxpublish ); } ).fail( function ( code, details ) { self.onFail( code, details ); } ).always( function () { @@ -269,6 +269,8 @@ /** * Failure handler for publishing + * @param {string} code + * @param {object} details */ CXPublish.prototype.onFail = function ( code, details ) { var trace = { -- To view, visit https://gerrit.wikimedia.org/r/206096 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2e16a0294c28d6676dceb91a3020edf40fda08b3 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits