moc: Make error message 'too many input files' more verbose.
Make it easier to diagnose quoting errors in scripts. Change-Id: I17894a426faa5cdf50f5ace4ed422ab2bd202558 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
bd9e1f3915
commit
dd921b59ab
@ -295,7 +295,7 @@ int runMoc(int argc, char **argv)
|
||||
|
||||
const QStringList files = parser.positionalArguments();
|
||||
if (files.count() > 1) {
|
||||
error("Too many input files specified");
|
||||
error(qPrintable(QStringLiteral("Too many input files specified: '") + files.join(QStringLiteral("' '")) + QLatin1Char('\'')));
|
||||
parser.showHelp(1);
|
||||
} else if (!files.isEmpty()) {
|
||||
filename = files.first();
|
||||
|
Loading…
Reference in New Issue
Block a user