rcc: Fix error message when temporary file cannot be opened
If rcc cannot open the file passed with --temp, display the path of the temporary file, not the one of the output file. Pick-to: 6.1 Change-Id: I58f8ab2f68ac2f1a19feb6b02974dff9fc8b7ec1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
parent
4da22d6534
commit
c3b5ca129a
@ -420,7 +420,7 @@ int runRcc(int argc, char *argv[])
|
||||
temp.setFileName(tempFilename);
|
||||
if (!temp.open(QIODevice::ReadOnly)) {
|
||||
const QString msg = QString::fromUtf8("Unable to open temporary file %1 for reading: %2\n")
|
||||
.arg(outFilename, out.errorString());
|
||||
.arg(tempFilename, out.errorString());
|
||||
errorDevice.write(msg.toUtf8());
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user