diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-10 20:01:45 +0100 |
commit | 95f096030ed1a8afea028f2ea295d6f6a70f466f (patch) | |
tree | 9b1dcdbbe678ad1a3152f5cfd70a136efce6bc92 /src/evalfunc.c | |
parent | 459ca563128f2edb7e3bb190090bbb755a56dd55 (diff) |
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/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f643329c95..1257aa0594 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2644,7 +2644,7 @@ f_empty(typval_T *argvars, typval_T *rettv) break; #endif case VAR_UNKNOWN: - EMSG2(_(e_intern2), "f_empty(UNKNOWN)"); + internal_error("f_empty(UNKNOWN)"); n = TRUE; break; } @@ -12695,7 +12695,7 @@ f_type(typval_T *argvars, typval_T *rettv) case VAR_JOB: n = VAR_TYPE_JOB; break; case VAR_CHANNEL: n = VAR_TYPE_CHANNEL; break; case VAR_UNKNOWN: - EMSG2(_(e_intern2), "f_type(UNKNOWN)"); + internal_error("f_type(UNKNOWN)"); n = -1; break; } |