diff options
Diffstat (limited to 'FreeFileSync/Source/fatal_error.h')
-rw-r--r-- | FreeFileSync/Source/fatal_error.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FreeFileSync/Source/fatal_error.h b/FreeFileSync/Source/fatal_error.h index 8d310b3b..20b01484 100644 --- a/FreeFileSync/Source/fatal_error.h +++ b/FreeFileSync/Source/fatal_error.h @@ -31,10 +31,10 @@ inline void logFatalError(const std::wstring& msg) //noexcept { warn_static("new semantics: logErrorWhileBusy or logErrorShowLater + show upon next FFS start!?") - warn_static("this really should append!") - //create time-stamped file path + show if newer than last FFS run? (save in GlobalSettings.xml) - //replace calls to ::MessageBox() and std::cerr ? - //save std::time() + warn_static("this really should append!") + //create time-stamped file path + show if newer than last FFS run? (save in GlobalSettings.xml) + //replace calls to ::MessageBox() and std::cerr ? + //save std::time() using namespace zen; @@ -42,7 +42,7 @@ void logFatalError(const std::wstring& msg) //noexcept const std::string logEntry = '[' + utfTo<std::string>(formatTime(formatDateTimeTag)) + "] " + utfTo<std::string>(msg); try { - setFileContent(getConfigDirPathPf() + Zstr("LastError.log"), logEntry, nullptr /*notifyUnbufferedIO*/); //throw FileError + setFileContent(appendPath(getConfigDirPath(), Zstr("LastError.log")), logEntry, nullptr /*notifyUnbufferedIO*/); //throw FileError } catch (FileError&) { assert(false); } } |