summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c
index 8262640db..dba003eae 100644
--- a/src/json.c
+++ b/src/json.c
@@ -230,8 +230,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options)
case VAR_PARTIAL:
case VAR_JOB:
case VAR_CHANNEL:
- // no JSON equivalent TODO: better error
- emsg(_(e_invarg));
+ semsg(_(e_cannot_json_encode_str), vartype_name(val->v_type));
return FAIL;
case VAR_BLOB: