mirror of
https://github.com/libAthena/athena.git
synced 2025-07-13 08:35:57 +00:00
attempt 3
This commit is contained in:
parent
5a416eec41
commit
7d7d0e0891
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user