Mercurial > vim
diff src/json.c @ 26865:bce848ec8b1b v8.2.3961
patch 8.2.3961: error messages are spread out
Commit: https://github.com/vim/vim/commit/436b5adc9770a2568209dd5ab1f98bd1afc91898
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 31 22:49:24 2021 +0000
patch 8.2.3961: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 00:00:04 +0100 |
parents | 763ea8f075db |
children | 7f150a4936f2 |
line wrap: on
line diff
--- a/src/json.c +++ b/src/json.c @@ -933,7 +933,7 @@ json_decode_item(js_read_T *reader, typv 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 reader.js_fill = NULL; reader.js_used = 0; if (json_decode_all(&reader, rettv, JSON_JS) != OK) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); } /*