diff options
Diffstat (limited to 'src/lib/corelib/api/runenvironment.cpp')
-rw-r--r-- | src/lib/corelib/api/runenvironment.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/corelib/api/runenvironment.cpp b/src/lib/corelib/api/runenvironment.cpp index f54914964..1bd9735ee 100644 --- a/src/lib/corelib/api/runenvironment.cpp +++ b/src/lib/corelib/api/runenvironment.cpp @@ -313,8 +313,7 @@ int RunEnvironment::doRunTarget(const QString &targetBin, const QStringList &arg if (!process.waitForFinished(-1)) { if (process.error() == QProcess::FailedToStart) { throw ErrorInfo(Tr::tr("The process '%1' could not be started: %2") - .arg(targetExecutable) - .arg(process.errorString())); + .arg(targetExecutable, process.errorString())); } else { d->logger.qbsWarning() << "QProcess error: " << process.errorString(); @@ -353,8 +352,7 @@ int RunEnvironment::doRunTarget(const QString &targetBin, const QStringList &arg if (!process.waitForFinished(-1)) { if (process.error() == QProcess::FailedToStart) { throw ErrorInfo(Tr::tr("The process '%1' could not be started: %2") - .arg(targetExecutable) - .arg(process.errorString())); + .arg(targetExecutable, process.errorString())); } return EXIT_FAILURE; @@ -458,8 +456,7 @@ int RunEnvironment::doRunTarget(const QString &targetBin, const QStringList &arg } #endif throw ErrorInfo(Tr::tr("The process '%1' could not be started: %2") - .arg(targetExecutable) - .arg(errorPrefixString + process.errorString())); + .arg(targetExecutable, errorPrefixString + process.errorString())); } else { d->logger.qbsWarning() << "QProcess error: " << process.errorString(); |