summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-23 17:16:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-23 17:16:18 +0200
commit2d06bfde29bd3a62fc85823d2aa719ef943bd319 (patch)
treedac4bc628fbc1b9414f8901375abe0b9e975a736 /src/json.c
parent8930caaa1a283092aca81fdbc3fcf15c7eadb197 (diff)
downloadvim-git-2d06bfde29bd3a62fc85823d2aa719ef943bd319.tar.gz
patch 8.2.1281: the "trailing characters" error can be hard to understandv8.2.1281
Problem: The "trailing characters" error can be hard to understand. Solution: Add the trailing characters to the message.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index c22864df1..8262640db 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1086,7 +1086,7 @@ json_decode_all(js_read_T *reader, typval_T *res, int options)
json_skip_white(reader);
if (reader->js_buf[reader->js_used] != NUL)
{
- emsg(_(e_trailing));
+ semsg(_(e_trailing_arg), reader->js_buf + reader->js_used);
return FAIL;
}
return OK;