changeset 15105:e720da6c932a v8.1.0563

patch 8.1.0563: setting v:errors to a string give confusing error commit https://github.com/vim/vim/commit/74ea88c170f65afa50b2b97e37806d13b4e24cd7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 4 22:37:49 2018 +0100 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Dec 2018 22:45:06 +0100
parents d0424ae5a5f4
children 3adb90c9a8db
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    563,
+/**/
     562,
 /**/
     561,