Use qWarning only if script isn't starting script

1.2
IceArmy 2011-06-19 14:00:04 -07:00
parent 7a9e0c8599
commit 54478a1154
1 changed files with 5 additions and 1 deletions

View File

@ -132,7 +132,11 @@ bool Utils::injectJsInFrame(const QString &jsFilePath, const QString &libraryPat
jsFile.close();
return true;
} else {
qWarning() << "Can't open '" << qPrintable(jsFilePath) << "'";
if (startingScript) {
std::cerr << "Can't open '" << qPrintable(jsFilePath) << "'" << std::endl;
} else {
qWarning("Can't open '%s'", qPrintable(jsFilePath));
}
}
}
return false;