diff --git a/CoroutineClient.php b/CoroutineClient.php index 6c2aa89..71b8e82 100644 --- a/CoroutineClient.php +++ b/CoroutineClient.php @@ -68,10 +68,9 @@ class CoroutineClient extends ClientAbstracts } $this->execute($url, $data); - } catch (\Throwable $exception) { $this->setStatusCode(-1); - $this->setBody(jTraceEx($exception)); + $this->setBody(json_encode(['code' => 500, 'message' => $exception->getMessage()])); } }