forked from qt-creator/qt-creator
make the file error message a bit more informative
Change-Id: If6be3a280e0509541df0354f41a3ed1dad100239 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -206,7 +206,8 @@ bool QMakeParser::read(ProFile *pro)
|
||||
QFile file(pro->fileName());
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
if (m_handler && IoUtils::exists(pro->fileName()))
|
||||
m_handler->parseError(QString(), 0, fL1S("%1 not readable.").arg(pro->fileName()));
|
||||
m_handler->parseError(QString(), 0, fL1S("Cannot read %1: %2")
|
||||
.arg(pro->fileName(), file.errorString()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user