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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user