aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-04-04 10:58:29 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-04-04 12:19:58 +0000
commit2505982e9bbe5a8fc9b664530b243461750a6877 (patch)
tree19787f4f09b0dcb85d0b76de091781e14cec3ff7
parent31cce3c4efbff8584b0a8907e985e2c01a8408e7 (diff)
Improve the error message for a crashed process launcher
It used to just say "Process crashed" with no context. Also get rid of an unneeded check when emitting the associated error signal. Change-Id: I483342e4f97fadca7105099adb1f163dfbbfc5be Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/lib/corelib/tools/launcherinterface.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/corelib/tools/launcherinterface.cpp b/src/lib/corelib/tools/launcherinterface.cpp
index 7e9679379..7e5674d6c 100644
--- a/src/lib/corelib/tools/launcherinterface.cpp
+++ b/src/lib/corelib/tools/launcherinterface.cpp
@@ -133,10 +133,8 @@ void LauncherInterface::handleProcessError()
void LauncherInterface::handleProcessFinished()
{
- if (!m_socket->isReady()) {
- emit errorOccurred(ErrorInfo(m_process->errorString()));
- return;
- }
+ emit errorOccurred(ErrorInfo(Tr::tr("Process launcher closed unexpectedly: %1")
+ .arg(m_process->errorString())));
}
void LauncherInterface::handleProcessStderr()