0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 22:49:24 +00:00
parent f1474d801b
commit 436b5adc97
62 changed files with 427 additions and 403 deletions

View File

@@ -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));
}
/*