mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
api_set_error: include expression with "Failed to evaluate expression" (#11713)
This commit is contained in:
@@ -443,7 +443,8 @@ Object nvim_eval(String expr, Error *err)
|
||||
if (!try_end(err)) {
|
||||
if (ok == FAIL) {
|
||||
// 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 {
|
||||
rv = vim_to_object(&rettv);
|
||||
}
|
||||
|
Reference in New Issue
Block a user