From 74ea88c170f65afa50b2b97e37806d13b4e24cd7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 4 Dec 2018 22:37:49 +0100 Subject: 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. --- src/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eval.c') diff --git a/src/eval.c b/src/eval.c index 7dfb981254..1dae2bfba9 100644 --- a/src/eval.c +++ b/src/eval.c @@ -7568,7 +7568,7 @@ set_var( 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); -- cgit v1.2.3