]> granicus.if.org Git - vim/commitdiff
patch 8.1.0563: setting v:errors to a string give confusing error v8.1.0563
authorBram Moolenaar <Bram@vim.org>
Tue, 4 Dec 2018 21:37:49 +0000 (22:37 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 4 Dec 2018 21:37:49 +0000 (22:37 +0100)
Problem:    Setting v:errors to a string give confusing error. (Christian
            Brabandt)
Solution:   Change internal error into normal error message.

src/eval.c
src/version.c

index 7dfb9812547b037a2bbe74fb846924ab13e2e9b1..1dae2bfba9e95e5a8767cef94b1bc118308370c2 100644 (file)
@@ -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);
index f86f7c959b4d6c913a6c8d8c82d23f2107cb8cd6..474c96b96a10292aba9159e2ceb87b716a7e9410 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    563,
 /**/
     562,
 /**/