Skip to content

Commit 74ea88c

Browse files
committed
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.
1 parent b6fc728 commit 74ea88c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7568,7 +7568,7 @@ set_var(
75687568
return;
75697569
}
75707570
else if (v->di_tv.v_type != tv->v_type)
7571-
internal_error("set_var()");
7571+
EMSG2(_("E963: setting %s to value with wrong type"), name);
75727572
}
75737573

75747574
clear_tv(&v->di_tv);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ static char *(features[]) =
792792

793793
static int included_patches[] =
794794
{ /* Add new patch number below this line */
795+
/**/
796+
563,
795797
/**/
796798
562,
797799
/**/

0 commit comments

Comments
 (0)