Mercurial > vim
comparison src/message.c @ 22584:c271498e03b2 v8.2.1840
patch 8.2.1840: Vim9: error message is not clear about compilation error
Commit: https://github.com/vim/vim/commit/f4e8cdd3d2156ab52aea1c7a392df66b7210e5eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 12 22:07:13 2020 +0200
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 12 Oct 2020 22:15:04 +0200 |
parents | a607f02fd17a |
children | fb5546aa6817 |
comparison
equal
deleted
inserted
replaced
22583:973eeeb5c6a6 | 22584:c271498e03b2 |
---|---|
465 char_u *tofree = sname; | 465 char_u *tofree = sname; |
466 | 466 |
467 if (sname == NULL) | 467 if (sname == NULL) |
468 sname = SOURCING_NAME; | 468 sname = SOURCING_NAME; |
469 | 469 |
470 p = (char_u *)_("Error detected while processing %s:"); | 470 #ifdef FEAT_EVAL |
471 if (estack_compiling) | |
472 p = (char_u *)_("Error detected while compiling %s:"); | |
473 else | |
474 #endif | |
475 p = (char_u *)_("Error detected while processing %s:"); | |
471 Buf = alloc(STRLEN(sname) + STRLEN(p)); | 476 Buf = alloc(STRLEN(sname) + STRLEN(p)); |
472 if (Buf != NULL) | 477 if (Buf != NULL) |
473 sprintf((char *)Buf, (char *)p, sname); | 478 sprintf((char *)Buf, (char *)p, sname); |
474 vim_free(tofree); | 479 vim_free(tofree); |
475 return Buf; | 480 return Buf; |