mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 15:28:17 +00:00
api/internal: Remove set
field from Error type.
This commit is contained in:
@@ -6512,7 +6512,7 @@ static void api_wrapper(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
Error err = ERROR_INIT;
|
||||
Object result = fn(INTERNAL_CALL, args, &err);
|
||||
|
||||
if (err.set) {
|
||||
if (ERROR_SET(&err)) {
|
||||
nvim_err_writeln(cstr_as_string(err.msg));
|
||||
goto end;
|
||||
}
|
||||
@@ -13784,7 +13784,7 @@ static void f_rpcrequest(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
restore_funccal(save_funccalp);
|
||||
}
|
||||
|
||||
if (err.set) {
|
||||
if (ERROR_SET(&err)) {
|
||||
nvim_err_writeln(cstr_as_string(err.msg));
|
||||
goto end;
|
||||
}
|
||||
|
Reference in New Issue
Block a user