mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Use a special name for stdin/stdout in diagnostics
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user