mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
add logfile name to error message.
This commit is contained in:
parent
d23824dd0e
commit
142f8a9578
@ -209,9 +209,9 @@ inline QString msgSendArgumentFailed()
|
||||
"Unable to send command line arguments to the already running instance. It appears to be not responding.");
|
||||
}
|
||||
|
||||
inline QString msgLogfileOpenFailed()
|
||||
inline QString msgLogfileOpenFailed(QString &fileName)
|
||||
{
|
||||
return QCoreApplication::translate("Application", "Failed to open log file");
|
||||
return QCoreApplication::translate("Application", "Failed to open log file %1").arg(fileName);
|
||||
}
|
||||
|
||||
// Prepare a remote argument: If it is a relative file, add the current directory
|
||||
@ -318,7 +318,7 @@ void logInit(QString fileName)
|
||||
logStream = new QTextStream(file);
|
||||
qInstallMessageHandler(mainMessageOutput);
|
||||
} else {
|
||||
displayError(msgLogfileOpenFailed());
|
||||
displayError(msgLogfileOpenFailed(fileName));
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user