shell_write_cb: Schedule error message. (#5670)

Closes #5558
This commit is contained in:
Justin M. Keyes
2016-11-26 13:08:42 +01:00
committed by GitHub
parent ecd7beb6e4
commit 7be113d795
3 changed files with 23 additions and 4 deletions

View File

@@ -548,8 +548,8 @@ static void shell_write_cb(Stream *stream, void *data, int status)
if (status) {
// Can happen if system() tries to send input to a shell command that was
// backgrounded (:call system("cat - &", "foo")). #3529 #5241
EMSG2(_("E5677: Error writing input to shell-command: %s"),
uv_err_name(status));
msg_schedule_emsgf(_("E5677: Error writing input to shell-command: %s"),
uv_err_name(status));
}
if (stream->closed) { // Process may have exited before this write.
ELOG("stream was already closed");