Better error output

This commit is contained in:
Corey Johnson
2012-04-03 10:32:05 -07:00
parent f35344d4a3
commit e0274c293f
2 changed files with 9 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ bool ClientHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser,
{
REQUIRE_UI_THREAD();
std::cout << std::string(message) << "\n";
std::cout << std::string(message) << "\n\t" << std::string(source) << ":" << line;
return true;
}

View File

@@ -4,8 +4,15 @@
<script>
window.onload = function() {
if ($bootstrapScript) require($bootstrapScript);
try {
if ($bootstrapScript) require($bootstrapScript);
}
catch (error) {
$native.showDevTools()
console.error(error.stack)
}
}
</script>
</head>
<body>