configure.exe: improve error message by adding the filename.

Before:
Could not find output file: No such file or directory

After:
Could not find output file 'arch.exe' or 'arch' in C:/Qt/qt5/qtbase/config.tests/arch : No such file or directory

(it turned out that linking in that directory failed because of a wrong %PATH%)

Change-Id: I948d7f10f7e82f77a08ac9a8db76d97536c42dd0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
David Faure 2014-12-30 14:33:51 +01:00
parent 1196f69112
commit 4091202cf1

View File

@ -3172,7 +3172,7 @@ void Configure::detectArch()
if (!exe.open(QFile::ReadOnly)) { // no Text, this is binary
exe.setFileName("arch");
if (!exe.open(QFile::ReadOnly)) {
cout << "Could not find output file: " << qPrintable(exe.errorString()) << endl;
cout << "Could not find output file '" << qPrintable(arch_exe) << "' or 'arch' in " << qPrintable(newpwd) << " : " << qPrintable(exe.errorString()) << endl;
dictionary["DONE"] = "error";
return;
}