Fix compatibility with -debuglogfile command-line option

This change avoids hardcoding the "debug.log" filename, ensuring
compatibility with custom filenames provided via the `-debuglogfile`
command-line option.
This commit is contained in:
Hennadii Stepanov
2026-03-10 12:56:28 +00:00
parent 544c15ff4e
commit ddf2a064de
5 changed files with 6 additions and 5 deletions

View File

@@ -224,7 +224,7 @@ static bool AppInit(NodeContext& node)
if (token) { // Success
exit(EXIT_SUCCESS);
} else { // fRet = false or token read error (premature exit).
tfm::format(std::cerr, "Error during initialization - check debug.log for details\n");
tfm::format(std::cerr, "Error during initialization - check %s for details\n", fs::PathToString(LogInstance().m_file_path.filename()));
exit(EXIT_FAILURE);
}
}