diff src/dict.c @ 10359:66f1b5bf3fa6 v8.0.0074

commit https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 10 20:01:45 2016 +0100 patch 8.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.
author Christian Brabandt <cb@256bit.org>
date Thu, 10 Nov 2016 20:15:05 +0100
parents 4aead6a9b7a9
children 835604f3c37a
line wrap: on
line diff
--- a/src/dict.c
+++ b/src/dict.c
@@ -214,7 +214,7 @@ dictitem_remove(dict_T *dict, dictitem_T
 
     hi = hash_find(&dict->dv_hashtab, item->di_key);
     if (HASHITEM_EMPTY(hi))
-	EMSG2(_(e_intern2), "dictitem_remove()");
+	internal_error("dictitem_remove()");
     else
 	hash_remove(&dict->dv_hashtab, hi);
     dictitem_free(item);