From 4c4997e988e506050563805541322ece396a0368 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 6 Dec 2018 23:20:28 -0500 Subject: vim-patch:8.1.0563: setting v:errors to a string give confusing error Problem: Setting v:errors to a string give confusing error. (Christian Brabandt) Solution: Change internal error into normal error message. https://github.com/vim/vim/commit/74ea88c170f65afa50b2b97e37806d13b4e24cd7 --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/eval.c') diff --git a/src/nvim/eval.c b/src/nvim/eval.c index fac56e9206..a5d79bcd4a 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -19253,7 +19253,7 @@ static void set_var(const char *name, const size_t name_len, typval_T *const tv, } return; } else if (v->di_tv.v_type != tv->v_type) { - internal_error("set_var()"); + EMSG2(_("E963: setting %s to value with wrong type"), name); } } -- cgit