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/hashtab.c | |
parent | 459ca563128f2edb7e3bb190090bbb755a56dd55 (diff) | |
download | vim-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/hashtab.c')
-rw-r--r-- | src/hashtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashtab.c b/src/hashtab.c index d8d3aed28..658bfb969 100644 --- a/src/hashtab.c +++ b/src/hashtab.c @@ -210,7 +210,7 @@ hash_add(hashtab_T *ht, char_u *key) hi = hash_lookup(ht, key, hash); if (!HASHITEM_EMPTY(hi)) { - EMSG2(_(e_intern2), "hash_add()"); + internal_error("hash_add()"); return FAIL; } return hash_add_item(ht, hi, key, hash); |