summaryrefslogtreecommitdiff
path: root/FreeFileSync/Source/fatal_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'FreeFileSync/Source/fatal_error.h')
-rw-r--r--FreeFileSync/Source/fatal_error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/FreeFileSync/Source/fatal_error.h b/FreeFileSync/Source/fatal_error.h
index 476a8075..eb025472 100644
--- a/FreeFileSync/Source/fatal_error.h
+++ b/FreeFileSync/Source/fatal_error.h
@@ -36,9 +36,9 @@ void logFatalError(const std::string& msg) //noexcept
const std::string logEntry = '[' + utfTo<std::string>(formatTime(formatDateTimeTag)) + "] " + msg;
try
{
- saveBinContainer(getConfigDirPathPf() + Zstr("LastError.log"), logEntry, nullptr /*notifyUnbufferedIO*/); //throw FileError
+ setFileContent(getConfigDirPathPf() + Zstr("LastError.log"), logEntry, nullptr /*notifyUnbufferedIO*/); //throw FileError
}
- catch (FileError&) {}
+ catch (FileError&) { assert(false); }
}
}
bgstack15