Use a special name for stdin/stdout in diagnostics

This commit is contained in:
ISSOtm
2022-11-12 12:29:28 +01:00
committed by Eldred Habert
parent 6902387991
commit 3e5cd8ce1a
5 changed files with 41 additions and 21 deletions

View File

@@ -257,7 +257,7 @@ static void registerInput(char const *arg) {
static std::vector<size_t> readAtFile(std::string const &path, std::vector<char> &argPool) {
File file;
if (!file.open(path, std::ios_base::in)) {
fatal("Error reading @%s: %s", path.c_str(), strerror(errno));
fatal("Error reading @%s: %s", file.c_str(path), strerror(errno));
}
// We only filter out `EOF`, but calling `isblank()` on anything else is UB!