summaryrefslogtreecommitdiff
path: root/src/ex_eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-10 20:01:45 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-10 20:01:45 +0100
commit95f096030ed1a8afea028f2ea295d6f6a70f466f (patch)
tree9b1dcdbbe678ad1a3152f5cfd70a136efce6bc92 /src/ex_eval.c
parent459ca563128f2edb7e3bb190090bbb755a56dd55 (diff)
downloadvim-git-95f096030ed1a8afea028f2ea295d6f6a70f466f.tar.gz
patch 8.0.0074v8.0.0074
Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r--src/ex_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c
index daccfc868..7589f8e0d 100644
--- a/src/ex_eval.c
+++ b/src/ex_eval.c
@@ -595,7 +595,7 @@ discard_exception(except_T *excp, int was_finished)
if (excp == NULL)
{
- EMSG(_(e_internal));
+ internal_error("discard_exception()");
return;
}
@@ -700,7 +700,7 @@ catch_exception(except_T *excp)
finish_exception(except_T *excp)
{
if (excp != caught_stack)
- EMSG(_(e_internal));
+ internal_error("finish_exception()");
caught_stack = caught_stack->caught;
if (caught_stack != NULL)
{
@@ -1603,7 +1603,7 @@ ex_catch(exarg_T *eap)
* ":break", ":return", ":finish", error, interrupt, or another
* exception. */
if (cstack->cs_exception[cstack->cs_idx] != current_exception)
- EMSG(_(e_internal));
+ internal_error("ex_catch()");
}
else
{
@@ -1737,7 +1737,7 @@ ex_finally(exarg_T *eap)
* exception will be discarded. */
if (did_throw && cstack->cs_exception[cstack->cs_idx]
!= current_exception)
- EMSG(_(e_internal));
+ internal_error("ex_finally()");
}
/*