Mercurial > vim
diff src/json.c @ 26966:ac75c145f0a9 v8.2.4012
patch 8.2.4012: error messages are spread out
Commit: https://github.com/vim/vim/commit/d82a47dd0493ee976aa3f15ecdc9aea7da6ad5bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 5 20:24:39 2022 +0000
patch 8.2.4012: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Jan 2022 21:30:04 +0100 |
parents | 3631d2deb36c |
children | 41e0dcf38521 |
line wrap: on
line diff
--- a/src/json.c +++ b/src/json.c @@ -1004,8 +1004,7 @@ item_end: && dict_find(top_item->jd_tv.vval.v_dict, top_item->jd_key, -1) != NULL) { - semsg(_("E938: Duplicate key in JSON: \"%s\""), - top_item->jd_key); + semsg(_(e_duplicate_key_in_json_str), top_item->jd_key); clear_tv(cur_item); retval = FAIL; goto theend;