attempt 3

This commit is contained in:
Phillip Stephens 2025-01-02 15:59:58 -08:00
parent 5a416eec41
commit 7d7d0e0891
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ void FileReader::open() {
m_fileHandle = 0;
std::string _filename = filename();
if (m_globalErr)
atError("File not found '{}'") _filename);
atError("File not found '{}'", _filename);
setError();
return;
}

View File

@ -48,8 +48,10 @@ void FileWriter::open(bool overwrite) {
if (m_fileHandle == INVALID_HANDLE_VALUE) {
m_fileHandle = 0;
if (m_globalErr)
atError("Unable to open file '{}'", filename());
if (m_globalErr) {
auto _filename = filename();
atError("Unable to open file '{}'", _filename);
}
setError();
return;
}