summaryrefslogtreecommitdiff
path: root/src/message.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-30 13:32:09 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-30 13:32:09 +0000
commit1c67f3a9779b99bed7aacb3108abbb649445d3ed (patch)
treeb3a7f8af98a36076107aed71a4385b645e10d6d6 /src/message.c
parent13789bf10338a0d049c78acfdc0870fc63e63f4f (diff)
downloadvim-git-1c67f3a9779b99bed7aacb3108abbb649445d3ed.tar.gz
patch 8.2.3946: when an internal error makes Vim exit the error is not seenv8.2.3946
Problem: When an internal error makes Vim exit the error is not seen. Solution: Add the error to the test output.
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c
index 7e98d0b99..8768065bb 100644
--- a/src/message.c
+++ b/src/message.c
@@ -824,10 +824,13 @@ semsg(const char *s, ...)
iemsg(char *s)
{
if (!emsg_not_now())
+ {
emsg_core((char_u *)s);
#ifdef ABORT_ON_INTERNAL_ERROR
- abort();
+ set_vim_var_string(VV_ERRMSG, (char_u *)s, -1);
+ abort();
#endif
+ }
}
#ifndef PROTO // manual proto with __attribute__