Don't silently fail if API result fails to encode
authorC. Scott Ananian <cscott@cscott.net>
Tue, 27 Nov 2018 22:47:56 +0000 (17:47 -0500)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 5 Dec 2018 18:28:33 +0000 (13:28 -0500)
commitafd3dbaa95f1557423baf6bc13a64ba7e59dfaca
treed477f343bd97e7d746fd9509c351b56842c003c4
parentc31d80f1bf7129350042a8a006886adf5bcd1996
Don't silently fail if API result fails to encode

Ensure that errors encoding API results produce actionable log entries.

Part of the follow-up to T210550.

Change-Id: I6f311451e3b07b540f14352ce25af9d74a053d19
includes/api/ApiFormatJson.php
tests/phpunit/includes/api/format/ApiFormatJsonTest.php
tests/phpunit/includes/api/format/ApiFormatTestBase.php