Commit 4d3c58de authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

make the file error message a bit more informative



Change-Id: If6be3a280e0509541df0354f41a3ed1dad100239
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 5a765c7a
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment