commit | 74ea88c170f65afa50b2b97e37806d13b4e24cd7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Dec 04 22:37:49 2018 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Dec 04 22:37:49 2018 +0100 |
tree | 31235a36c1a60adc2a6577dd2ac229978b5c317e | |
parent | b6fc72851c45a36a370f9516c68508e47b41c4c1 [diff] [blame] |
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.
diff --git a/src/eval.c b/src/eval.c index 7dfb981..1dae2bf 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -7568,7 +7568,7 @@ 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); } clear_tv(&v->di_tv);