aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/api
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-07-04 13:23:05 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-04 13:29:07 +0200
commit4be1ddd7d4d70adc7ab8354a93e9d057f1163c3d (patch)
tree6137733f18d0bff077639bcd17e259a77dd56409 /src/lib/corelib/api
parent7a96f30d0f84f46287c954ed10292a258ad13fbb (diff)
Fix argument replacement in error message.
Change-Id: I17a83de67ea1419d95b62e4e8228e162d2ffa49a Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/corelib/api')
-rw-r--r--src/lib/corelib/api/projectfileupdater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/api/projectfileupdater.cpp b/src/lib/corelib/api/projectfileupdater.cpp
index 9104462da..2deb83264 100644
--- a/src/lib/corelib/api/projectfileupdater.cpp
+++ b/src/lib/corelib/api/projectfileupdater.cpp
@@ -459,8 +459,8 @@ void ProjectFileFilesRemover::doApply(QString &fileContent, UiProgram *ast)
const QString existingFile
= static_cast<StringLiteral *>(exprStatement->expression)->value.toString();
if (existingFile != m_files.first()) {
- throw ErrorInfo(Tr::tr("File '1' could not be found in the 'files' list."),
- bindingLocation);
+ throw ErrorInfo(Tr::tr("File '%1' could not be found in the 'files' list.")
+ .arg(m_files.first()), bindingLocation);
}
rewriter.changeBinding(itemFinder.item()->initializer, QLatin1String("files"),
QLatin1String("[]"), Rewriter::ScriptBinding);