Add more info to error message

This commit is contained in:
Thomas Piccirello 2025-05-31 09:42:24 -07:00
commit 55aaca2bf3
No known key found for this signature in database

View file

@ -177,7 +177,8 @@ void FileLogger::openLogFile()
{ {
if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text))
{ {
LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled."), Log::CRITICAL); LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled. File: \"%1\". Error: \"%2\".")
.arg(m_logFile.fileName(), m_logFile.errorString()), Log::CRITICAL);
return; return;
} }