mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
emsg_multiline: log Vim errors (#10778)
This commit is contained in:
parent
6261d2658f
commit
abfc8b3257
@ -582,9 +582,25 @@ static bool emsg_multiline(const char *s, bool multiline)
|
||||
}
|
||||
redir_write(s, strlen(s));
|
||||
}
|
||||
|
||||
// Log (silent) errors as debug messages.
|
||||
if (sourcing_name != NULL && sourcing_lnum != 0) {
|
||||
DLOG("(:silent) %s (%s (line %ld))",
|
||||
s, sourcing_name, (long)sourcing_lnum);
|
||||
} else {
|
||||
DLOG("(:silent) %s", s);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Log editor errors as INFO.
|
||||
if (sourcing_name != NULL && sourcing_lnum != 0) {
|
||||
ILOG("%s (%s (line %ld))", s, sourcing_name, (long)sourcing_lnum);
|
||||
} else {
|
||||
ILOG("%s", s);
|
||||
}
|
||||
|
||||
ex_exitval = 1;
|
||||
|
||||
// Reset msg_silent, an error causes messages to be switched back on.
|
||||
|
Loading…
Reference in New Issue
Block a user