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:
Oswald Buddenhagen
2012-06-28 17:12:00 +02:00
parent 5a765c7ad8
commit 4d3c58dee5

View File

@@ -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;
}