Exception code
R-omk opened this issue · 1 comments
R-omk commented
I've tried branch php7-v1 and found problem with exception code.
My lua func1's code
local CONST_TIMEOUT_PULL=902
box.error{code = CONST_TIMEOUT_PULL, reason = 'timeout pull'}
php code
try {
$res = $tarantool->call("func1", "");
} catch (Throwable $e) {
print_r($e->getCode()."\n");
print_r($e->getMessage());
}
I've expected to see something like
902
timeout pull
But I've seen
0
Query error 902: timeout pull