diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-11-24 13:15:49 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-11-24 12:25:37 +0000 |
commit | 4b22e2093f08fb66107af4dbd8138cf9526c5786 (patch) | |
tree | 072a3d906c173de114b9e4263d790a11e0a84a95 /tools/qmlimportscanner | |
parent | ae5c13acb12b66929032824b651177db341f6d57 (diff) |
qmlimportscanner: Output application name in generic error messages
This makes it easier to spot issues in build logs.
Amends change a23bcdf91971510b79c541fdff4a9467ead08751.
Change-Id: I68e440c2ce79504fb5f5fa08392a91d39e631e25
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tools/qmlimportscanner')
-rw-r--r-- | tools/qmlimportscanner/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/qmlimportscanner/main.cpp b/tools/qmlimportscanner/main.cpp index 0f8eca34e1..1e5f7a9921 100644 --- a/tools/qmlimportscanner/main.cpp +++ b/tools/qmlimportscanner/main.cpp @@ -519,7 +519,8 @@ int main(int argc, char *argv[]) std::cerr << "-importPath requires an argument\n"; argReceiver = &qmlImportPaths; } else { - std::cerr << "Invalid argument: \"" << qPrintable(arg) << "\"\n"; + std::cerr << qPrintable(appName) << ": Invalid argument: \"" + << qPrintable(arg) << "\"\n"; return 1; } @@ -529,7 +530,8 @@ int main(int argc, char *argv[]) break; ++i; if (!QFile::exists(arg)) { - std::cerr << "No such file or directory: \"" << qPrintable(arg) << "\"\n"; + std::cerr << qPrintable(appName) << ": No such file or directory: \"" + << qPrintable(arg) << "\"\n"; return 1; } else { *argReceiver += arg; |