mirror of
https://github.com/libAthena/athena.git
synced 2025-07-13 16:46:04 +00:00
attempt 3
This commit is contained in:
parent
5a416eec41
commit
7d7d0e0891
@ -42,7 +42,7 @@ void FileReader::open() {
|
|||||||
m_fileHandle = 0;
|
m_fileHandle = 0;
|
||||||
std::string _filename = filename();
|
std::string _filename = filename();
|
||||||
if (m_globalErr)
|
if (m_globalErr)
|
||||||
atError("File not found '{}'") _filename);
|
atError("File not found '{}'", _filename);
|
||||||
setError();
|
setError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,10 @@ void FileWriter::open(bool overwrite) {
|
|||||||
|
|
||||||
if (m_fileHandle == INVALID_HANDLE_VALUE) {
|
if (m_fileHandle == INVALID_HANDLE_VALUE) {
|
||||||
m_fileHandle = 0;
|
m_fileHandle = 0;
|
||||||
if (m_globalErr)
|
if (m_globalErr) {
|
||||||
atError("Unable to open file '{}'", filename());
|
auto _filename = filename();
|
||||||
|
atError("Unable to open file '{}'", _filename);
|
||||||
|
}
|
||||||
setError();
|
setError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user