Ask for the reurn code of the process, not only for process exit status.
This commit is contained in:
parent
82352713f1
commit
c054668eac
@ -62,10 +62,11 @@ bool Command::execute(QString workingDirectory, QStringList args) {
|
||||
if (p->waitForFinished(m_waitForFinishTimeout)) {
|
||||
//qDebug() << "PROCESS" << m_command << "FINISHED";
|
||||
if (p->exitStatus() == QProcess::NormalExit) {
|
||||
//qInfo() << "EXECUTED" << m_command
|
||||
// << "with code" << p->exitCode();
|
||||
// qInfo() << "RESULT" << m_commandResult;
|
||||
if (p->exitCode() == 0) {
|
||||
return true;
|
||||
} else {
|
||||
qCritical() << "EXECUTED" << m_command << "with code" << p->exitCode();
|
||||
}
|
||||
} else {
|
||||
qCritical() << "PROCESS" << m_command << "CRASHED with code"
|
||||
<< p->exitCode();
|
||||
|
Loading…
Reference in New Issue
Block a user