mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 7.4.2080
Problem: When using PERROR() on some systems assert_fails() does not see the error. Solution: Make PERROR() always report the error.
This commit is contained in:
@@ -521,6 +521,21 @@ emsg_not_now(void)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_STRERROR) || defined(PROTO)
|
||||
/*
|
||||
* Replacement for perror() that behaves more or less like emsg() was called.
|
||||
* v:errmsg will be set and called_emsg will be set.
|
||||
*/
|
||||
void
|
||||
do_perror(char *msg)
|
||||
{
|
||||
perror(msg);
|
||||
++emsg_silent;
|
||||
emsg((char_u *)msg);
|
||||
--emsg_silent;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* emsg() - display an error message
|
||||
*
|
||||
|
Reference in New Issue
Block a user