diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-12 22:07:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-12 22:07:13 +0200 |
commit | f4e8cdd3d2156ab52aea1c7a392df66b7210e5eb (patch) | |
tree | dc6d9acee8bb857e78d4e3d097645b3f105389d2 /src/message.c | |
parent | fc8aa6d02d85b0df703e0a790137891c91503c9e (diff) |
patch 8.2.1840: Vim9: error message is not clear about compilation errorv8.2.1840
Problem: Vim9: error message is not clear about compilation error.
Solution: Say "compiling" instead of "processing".
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index 059835af0d..c52795286b 100644 --- a/src/message.c +++ b/src/message.c @@ -467,7 +467,12 @@ get_emsg_source(void) if (sname == NULL) sname = SOURCING_NAME; - p = (char_u *)_("Error detected while processing %s:"); +#ifdef FEAT_EVAL + if (estack_compiling) + p = (char_u *)_("Error detected while compiling %s:"); + else +#endif + p = (char_u *)_("Error detected while processing %s:"); Buf = alloc(STRLEN(sname) + STRLEN(p)); if (Buf != NULL) sprintf((char *)Buf, (char *)p, sname); |