diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/json.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) |
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index a8d3a090fc..78a3a8ee19 100644 --- a/src/json.c +++ b/src/json.c @@ -933,7 +933,7 @@ json_decode_item(js_read_T *reader, typval_T *res, int options) top_item->jd_key = tv_get_string_buf_chk(cur_item, key_buf); if (top_item->jd_key == NULL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); retval = FAIL; goto theend; } @@ -1164,7 +1164,7 @@ f_js_decode(typval_T *argvars, typval_T *rettv) reader.js_fill = NULL; reader.js_used = 0; if (json_decode_all(&reader, rettv, JSON_JS) != OK) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); } /* |