jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/327718 )

Change subject: Fix I0e802a47: Don't try to send dieWithError error codes as 
integers
......................................................................


Fix I0e802a47: Don't try to send dieWithError error codes as integers

Bug: T152429
Change-Id: If882b14adc945ca49e51a912a676aee0be9c9fec
---
M ApiVisualEditor.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  Jforrester: Looks good to me, approved



diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index b3981d8..dd8eef2 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -116,7 +116,7 @@
                } else { // error null, code not 200
                        $this->dieWithError(
                                [ 'apierror-visualeditor-docserver-http', 
$response['code'] ],
-                               $response['code']
+                               (string) $response['code']
                        );
                }
                return $response['body'];

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If882b14adc945ca49e51a912a676aee0be9c9fec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <a...@wikimedia.org>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to