comparison src/eval.c @ 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 0d2138d4c1dc
children 6344377dc7dc
comparison
equal deleted inserted replaced
15104:d0424ae5a5f4 15105:e720da6c932a
7566 } 7566 }
7567 #endif 7567 #endif
7568 return; 7568 return;
7569 } 7569 }
7570 else if (v->di_tv.v_type != tv->v_type) 7570 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);
7572 } 7572 }
7573 7573
7574 clear_tv(&v->di_tv); 7574 clear_tv(&v->di_tv);
7575 } 7575 }
7576 else /* add a new variable */ 7576 else /* add a new variable */