summaryrefslogtreecommitdiffstats
path: root/src/json.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/json.c
parent459ca563128f2edb7e3bb190090bbb755a56dd55 (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/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 36d47aa99d..4ec4411fb2 100644
--- a/src/json.c
+++ b/src/json.c
@@ -328,7 +328,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options)
break;
#endif
case VAR_UNKNOWN:
- EMSG2(_(e_intern2), "json_encode_item()");
+ internal_error("json_encode_item()");
return FAIL;
}
return OK;