feat: update error message
This commit is contained in:
parent
d17e252f93
commit
1728833307
1 changed files with 2 additions and 2 deletions
|
@ -458,10 +458,10 @@ App::post('/v1/execution')
|
||||||
switch (true) {
|
switch (true) {
|
||||||
/** No Error. */
|
/** No Error. */
|
||||||
case $errNo === 0: break;
|
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:
|
case $errNo === 111:
|
||||||
throw new Exception('An internal curl error has occurred within the executor! Error Msg: ' . $error, 406);
|
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:
|
default:
|
||||||
throw new Exception('An internal curl error has occurred within the executor! Error Msg: ' . $error, 500);
|
throw new Exception('An internal curl error has occurred within the executor! Error Msg: ' . $error, 500);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue