mirror of https://github.com/vitalif/phantomjs
Use qWarning only if script isn't starting script
parent
7a9e0c8599
commit
54478a1154
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue