pwd: Add newline to error message

This would keep the cursor on the same line, which is annoying.
This commit is contained in:
Fabian Homborg 2022-03-16 19:20:58 +01:00
parent d2225e5ce7
commit 4e2ce0af4e

View file

@ -61,7 +61,7 @@ maybe_t<int> builtin_pwd(parser_t &parser, io_streams_t &streams, const wchar_t
pwd = std::move(*real_pwd);
} else {
const char *error = std::strerror(errno);
streams.err.append_format(L"%ls: realpath failed: %s", cmd, error);
streams.err.append_format(L"%ls: realpath failed: %s\n", cmd, error);
return STATUS_CMD_ERROR;
}
}