Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/202995
Change subject: When parsoid fails, throw exception with status ...................................................................... When parsoid fails, throw exception with status $req->getContent() does not have anything. So having that in exception is useless Change-Id: I2507840c32f853cf15100fe42f899675e2f149ed --- M api/ApiContentTranslationPublish.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/95/202995/1 diff --git a/api/ApiContentTranslationPublish.php b/api/ApiContentTranslationPublish.php index ae481a4..c0158cd 100644 --- a/api/ApiContentTranslationPublish.php +++ b/api/ApiContentTranslationPublish.php @@ -44,7 +44,7 @@ $status = $req->execute(); if ( !$status->isOK() ) { - throw new MWException( $req->getContent() ); + throw new MWException( $status ); } return $req->getContent(); -- To view, visit https://gerrit.wikimedia.org/r/202995 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2507840c32f853cf15100fe42f899675e2f149ed Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits