status: Do add the command name to the error

This commit is contained in:
Fabian Boehm 2022-07-24 13:17:06 +02:00
parent 4f1c62ff43
commit d241f0853e

View File

@ -460,7 +460,7 @@ maybe_t<int> builtin_status(parser_t &parser, io_streams_t &streams, const wchar
streams.out.append(*real);
streams.out.push_back(L'\n');
} else {
streams.err.append_format(L"realpath failed: '%s'\n", cmd, std::strerror(errno));
streams.err.append_format(L"%ls: realpath failed: '%s'\n", cmd, std::strerror(errno));
}
break;
}