From 1728833307f71d0eced06096305f597f8a7a04a1 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 15 Mar 2022 16:04:43 +0400 Subject: [PATCH] feat: update error message --- app/executor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/executor.php b/app/executor.php index aca46c17a..7948a73fe 100644 --- a/app/executor.php +++ b/app/executor.php @@ -458,10 +458,10 @@ App::post('/v1/execution') switch (true) { /** No Error. */ case $errNo === 0: break; - /** Connection Refused. Runtime not ready for requests yet . 111 is the swoole error code for Connection Refused */ + /** Runtime not ready for requests yet. 111 is the swoole error code for Connection Refused - see https://openswoole.com/docs/swoole-error-code */ case $errNo === 111: throw new Exception('An internal curl error has occurred within the executor! Error Msg: ' . $error, 406); - /** Every other CURL error */ + /** Any other CURL error */ default: throw new Exception('An internal curl error has occurred within the executor! Error Msg: ' . $error, 500); }