feat: update error message
This commit is contained in:
parent
d17e252f93
commit
1728833307
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue