aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-06 23:20:28 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-12-06 23:21:49 -0500
commit4c4997e988e506050563805541322ece396a0368 (patch)
treed495ee77cd60720e9094ed848ec7ad49aff357d4 /src
parent769762834533292e1d6a34b3846213d3896dc386 (diff)
downloadrneovim-4c4997e988e506050563805541322ece396a0368.tar.gz
rneovim-4c4997e988e506050563805541322ece396a0368.tar.bz2
rneovim-4c4997e988e506050563805541322ece396a0368.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}