mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Only die when error string is not empty
Bug: T318083 Change-Id: I21c7a2b2541061a858a9791a2cb12866acd38dc5
This commit is contained in:
parent
185bdb1371
commit
87ff7a5fec
|
@ -85,7 +85,7 @@ trait ApiParsoidTrait {
|
|||
* @param array $response
|
||||
*/
|
||||
private function forwardErrorsAndCacheHeaders( array $response ) {
|
||||
if ( isset( $response['error'] ) ) {
|
||||
if ( !empty( $response['error'] ) ) {
|
||||
$this->dieWithError( $response['error'] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue