mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
api_set_error: include expression with "Failed to evaluate expression" (#11713)
This commit is contained in:
parent
f86acd213b
commit
8ba3354d74
@ -443,7 +443,8 @@ Object nvim_eval(String expr, Error *err)
|
|||||||
if (!try_end(err)) {
|
if (!try_end(err)) {
|
||||||
if (ok == FAIL) {
|
if (ok == FAIL) {
|
||||||
// Should never happen, try_end() should get the error. #8371
|
// Should never happen, try_end() should get the error. #8371
|
||||||
api_set_error(err, kErrorTypeException, "Failed to evaluate expression");
|
api_set_error(err, kErrorTypeException,
|
||||||
|
"Failed to evaluate expression: '%.*s'", 256, expr.data);
|
||||||
} else {
|
} else {
|
||||||
rv = vim_to_object(&rettv);
|
rv = vim_to_object(&rettv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user