1
0
forked from aniani/vim

patch 8.2.1840: Vim9: error message is not clear about compilation error

Problem:    Vim9: error message is not clear about compilation error.
Solution:   Say "compiling" instead of "processing".
This commit is contained in:
Bram Moolenaar
2020-10-12 22:07:13 +02:00
parent fc8aa6d02d
commit f4e8cdd3d2
5 changed files with 46 additions and 1 deletions

View File

@@ -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);