add error log to console

This commit is contained in:
hysios 2012-04-12 20:07:58 +08:00
parent 57a8c2661a
commit f55df1ab8f

View File

@ -56,7 +56,7 @@ void Runner::handleError(const QString &message, int lineNumber, const QString &
QString command("JHW._handleError(\"" + messageEscaped + "\", " + QString(ss.str().c_str()) + ", \"" + sourceIDEscaped + "\"); false;");
page.mainFrame()->evaluateJavaScript(command);
print("stdout", command);
hasErrors = true;
}