1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
--------------------------------------------------------------------------------
-- #267: Bad exception catching
--------------------------------------------------------------------------------
pcall inside xpcall: true pcall is ok
pcall with Lua error(): false some message
pcall with box.error(): false Illegal parameters, some message
pcall with box.error(): typeof ctype<const struct error &>
pcall with box.error(): .type ClientError
pcall with box.error(): .code 1
pcall with box.error(): .message Illegal parameters, some message
pcall with box.error(): .match() some
pcall with no return: 1
pcall with multireturn: true 1 2 3
|