add error output to gui

This commit is contained in:
arcan1s 2014-08-13 07:58:54 +04:00
parent 1d34a65f38
commit 529e2dd995
2 changed files with 6 additions and 0 deletions

View File

@ -256,6 +256,8 @@ bool MainWindow::forceStartHelper()
if (debug) qDebug() << PDEBUG << ":" << "Run cmd" << cmd; if (debug) qDebug() << PDEBUG << ":" << "Run cmd" << cmd;
TaskResult process = runTask(cmd, false); TaskResult process = runTask(cmd, false);
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
if (process.exitCode != 0)
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
if (process.exitCode == 0) if (process.exitCode == 0)
return true; return true;

View File

@ -232,6 +232,8 @@ bool MainWindow::isHelperServiceActive()
if (debug) qDebug() << PDEBUG << "Run cmd" << cmd; if (debug) qDebug() << PDEBUG << "Run cmd" << cmd;
TaskResult process = runTask(cmd, false); TaskResult process = runTask(cmd, false);
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
if (process.exitCode != 0)
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
if (process.exitCode != 0) if (process.exitCode != 0)
return false; return false;
@ -278,6 +280,8 @@ bool MainWindow::checkExternalApps(const QString apps = QString("all"))
if (debug) qDebug() << PDEBUG << ":" << "Run cmd" << cmd.join(QChar(' ')); if (debug) qDebug() << PDEBUG << ":" << "Run cmd" << cmd.join(QChar(' '));
TaskResult process = runTask(cmd.join(QChar(' ')), false); TaskResult process = runTask(cmd.join(QChar(' ')), false);
if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode; if (debug) qDebug() << PDEBUG << ":" << "Cmd returns" << process.exitCode;
if (process.exitCode != 0)
if (debug) qDebug() << PDEBUG << ":" << "Error" << process.error;
if (process.exitCode != 0) if (process.exitCode != 0)
return false; return false;