mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Better error output
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user