NOISSUE Add extra warning to exit code logging

This commit is contained in:
Janrupf 2022-05-20 20:28:25 +02:00
parent cbe6d0dbfd
commit aebd9aa745

View File

@ -92,6 +92,8 @@ void LoggedProcess::on_exit(int exit_code, QProcess::ExitStatus status)
bool hasNameOrDescription = Sys::lookupSystemStatusCode(u_exit_code, statusName, statusDescription); bool hasNameOrDescription = Sys::lookupSystemStatusCode(u_exit_code, statusName, statusDescription);
if(hasNameOrDescription) if(hasNameOrDescription)
{ {
emit log({tr("Below is an analysis of the exit code. THIS MAY BE INCORRECT AND SHOULD BE TAKEN WITH A GRAIN OF SALT!")}, MessageLevel::Launcher);
if(!statusName.empty()) if(!statusName.empty())
{ {
emit log({tr("System exit code name: %1").arg(QString::fromStdString(statusName))}, MessageLevel::Launcher); emit log({tr("System exit code name: %1").arg(QString::fromStdString(statusName))}, MessageLevel::Launcher);