summaryrefslogtreecommitdiffstats
path: root/src/b2qt-flashing-wizard/scriptwriter.cpp
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@theqtcompany.com>2014-11-14 15:19:18 +0100
committerRainer Keller <rainer.keller@theqtcompany.com>2014-11-14 16:19:21 +0200
commit9f77929a4306a759c9d4bfb8cadc810ed4c05219 (patch)
tree87f4db96b141b7eb0f0728ed3ffca28f0b091536 /src/b2qt-flashing-wizard/scriptwriter.cpp
parent6010e69aa3ac3e94c0fabf16a28e682e35a07a68 (diff)
b2qt-flashing-wizard: Handle script errors
Change-Id: Ic470f3bdb4e2870279edcb3012160b9edea075ae Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
Diffstat (limited to 'src/b2qt-flashing-wizard/scriptwriter.cpp')
-rw-r--r--src/b2qt-flashing-wizard/scriptwriter.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/b2qt-flashing-wizard/scriptwriter.cpp b/src/b2qt-flashing-wizard/scriptwriter.cpp
index dfe554e..063c35a 100644
--- a/src/b2qt-flashing-wizard/scriptwriter.cpp
+++ b/src/b2qt-flashing-wizard/scriptwriter.cpp
@@ -118,13 +118,8 @@ void ScriptWriter::readOutput()
void ScriptWriter::processFinished(int exitCode, QProcess::ExitStatus exitStatus)
{
- if (exitStatus != QProcess::NormalExit) {
- qWarning("process crashed");
- return;
- }
-
- if (exitCode != 0) {
- qWarning("process failed");
+ if (exitStatus != QProcess::NormalExit || exitCode != 0) {
+ emit failed("Image creation failed");
return;
}
emit finished();