From 7fb982e711f8b12afa585d19851b1bb0b7b081a4 Mon Sep 17 00:00:00 2001 From: Niels Weber Date: Tue, 12 Feb 2013 11:12:50 +0100 Subject: Unify some error strings. Change-Id: I3ce7d3f84c9654e5c457b9e5f6131ac931e8ba2f Reviewed-by: Karsten Heimrich --- src/libs/installer/registertoolchainoperation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libs/installer/registertoolchainoperation.cpp') diff --git a/src/libs/installer/registertoolchainoperation.cpp b/src/libs/installer/registertoolchainoperation.cpp index e0fb5324e..0caf1451b 100644 --- a/src/libs/installer/registertoolchainoperation.cpp +++ b/src/libs/installer/registertoolchainoperation.cpp @@ -71,8 +71,8 @@ bool RegisterToolChainOperation::performOperation() if (args.count() < 4) { setError(InvalidArguments); - setErrorString(tr("Invalid arguments in %0: %1 arguments given, minimum 4 expected.") - .arg(name()).arg(args.count())); + setErrorString(tr("Invalid arguments in %0: %1 arguments given, %2 expected%3.") + .arg(name()).arg(arguments().count()).arg(tr("at least 4"), QLatin1String(""))); return false; } @@ -81,12 +81,12 @@ bool RegisterToolChainOperation::performOperation() PackageManagerCore *const core = value(QLatin1String("installer")).value(); if (!core) { setError(UserDefinedError); - setErrorString(tr("Needed installer object in \"%1\" operation is empty.").arg(name())); + setErrorString(tr("Needed installer object in '%1' operation is empty.").arg(name())); return false; } if (core->value(scQtCreatorInstallerToolchainsFile).isEmpty()) { setError(UserDefinedError); - setErrorString(tr("There is no value set for %1 on the installer object.").arg( + setErrorString(tr("There is no value set for '%1' on the installer object.").arg( scQtCreatorInstallerToolchainsFile)); return false; } -- cgit v1.2.3