1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 04:07:55 +01:00

more diagnostics when compiler start fails

This commit is contained in:
Vadim Kurland 2010-02-13 23:54:10 +00:00
parent 0c6e96336b
commit 5366557d6e
2 changed files with 17 additions and 1 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 2518
#define BUILD_NUM 2522

View File

@ -78,6 +78,7 @@
#endif
#include <errno.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
@ -598,6 +599,7 @@ bool instDialog::executeCommand(const QString &path, QStringList &args)
{
case QProcess::FailedToStart:
addToLog( tr("The process failed to start") );
addToLog(QString("PATH: %1").arg(getenv("PATH")));
break;
case QProcess::Crashed:
addToLog( tr("The process crashed some time after starting successfully.") );
@ -615,6 +617,20 @@ bool instDialog::executeCommand(const QString &path, QStringList &args)
addToLog( tr("An unknown error occurred.") );
break;
}
addToLog( tr("Current state of QProcess:") );
switch (proc.state())
{
case QProcess::NotRunning:
addToLog(tr("The process is not running."));
break;
case QProcess::Starting:
addToLog(tr("The process is starting, but the program has not yet been invoked."));
break;
case QProcess::Running:
addToLog(tr("The process is running and is ready for reading and writing."));
break;
}
//blockInstallForFirewall(cnf.fwobj);
return false;
}