Commit 2f833d4
committed
net.box: separately handle
Currently, in the error case, `handle_eval_result` constructs a new error
passing the error it receives as an argument (which can be a box.error) to
the message argument of the `box.error` constructor.
Then, during `box.error` construction, if the error argument of
`handle_eval_result` was a `box.error`, it is converted to a string using
its string conversion metamethod, which currently returns the error's
message, losing the rest of the error's information.
But in scope of tarantool#9105, we are going to increase the verbosity of the
string conversion metamethod, and it will not return the error's message.
To adjust to this new behaviour, let's separately handle `box.error` in
`handle_eval_result`, and create the same error, but with the `ER_PROC_LUA`
code.
Needed for tarantool#9105
NO_CHANGELOG=<internal change>
NO_TEST=<internal change>
NO_DOC=<internal change>box.error in handle_eval_result
1 parent 97bfc2f commit 2f833d4
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
1368 | | - | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1369 | 1376 | | |
1370 | 1377 | | |
1371 | 1378 | | |
| |||
0 commit comments