forked from qt-creator/qt-creator
Git: Use native separators in error messages
Change-Id: I52cdcd2b34311796eff80cebd0b56f8996186fd0 Reviewed-on: http://codereview.qt.nokia.com/1446 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -130,17 +130,17 @@ QString SynchronousProcessResponse::exitMessage(const QString &binary, int timeo
|
||||
{
|
||||
switch (result) {
|
||||
case Finished:
|
||||
return SynchronousProcess::tr("The command '%1' finished successfully.").arg(binary);
|
||||
return SynchronousProcess::tr("The command '%1' finished successfully.").arg(QDir::toNativeSeparators(binary));
|
||||
case FinishedError:
|
||||
return SynchronousProcess::tr("The command '%1' terminated with exit code %2.").arg(binary).arg(exitCode);
|
||||
return SynchronousProcess::tr("The command '%1' terminated with exit code %2.").arg(QDir::toNativeSeparators(binary)).arg(exitCode);
|
||||
break;
|
||||
case TerminatedAbnormally:
|
||||
return SynchronousProcess::tr("The command '%1' terminated abnormally.").arg(binary);
|
||||
return SynchronousProcess::tr("The command '%1' terminated abnormally.").arg(QDir::toNativeSeparators(binary));
|
||||
case StartFailed:
|
||||
return SynchronousProcess::tr("The command '%1' could not be started.").arg(binary);
|
||||
return SynchronousProcess::tr("The command '%1' could not be started.").arg(QDir::toNativeSeparators(binary));
|
||||
case Hang:
|
||||
return SynchronousProcess::tr("The command '%1' did not respond within the timeout limit (%2 ms).").
|
||||
arg(binary).arg(timeoutMS);
|
||||
arg(QDir::toNativeSeparators(binary)).arg(timeoutMS);
|
||||
}
|
||||
return QString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user