From fe5a16b4caf38e41ada624ff539000105aaa93da Mon Sep 17 00:00:00 2001 From: Elena.Budnik Date: Tue, 4 Sep 2018 12:27:37 +0200 Subject: [PATCH] error for rest --- php/WebServices/WebServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/WebServices/WebServer.php b/php/WebServices/WebServer.php index 2706dd1..ac9aca0 100644 --- a/php/WebServices/WebServer.php +++ b/php/WebServices/WebServer.php @@ -68,7 +68,7 @@ class WebServer if ($this->isSoap) throw new SoapFault($errorType, $msg); else - return array("error" => $msg); + exit(json_encode(array("error" => $msg))); } private function isGetPlotRequest($name){ -- libgit2 0.21.2