mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 18:12:26 +00:00
file: add note on pp_set_dir
CLogger: fix log file opening (now uses VFS path correctly) ScriptingHost: fix error reporter - no longer does redundant write to console This was SVN commit r3246.
This commit is contained in:
@@ -413,10 +413,12 @@ void ScriptingHost::ErrorReporter(JSContext* UNUSED(cx), const char* message, JS
|
||||
if(!message)
|
||||
message = "No error message available";
|
||||
|
||||
// for developer convenience: write to output window so they can
|
||||
// doubleclick on that line and be taken to the error locus.
|
||||
debug_printf("%s(%d): %s\n", file, line, message);
|
||||
|
||||
if (g_Console)
|
||||
g_Console->InsertMessage(L"JavaScript Error (%hs, line %d): %hs", file, line, message);
|
||||
// note: CLogger's LOG already takes care of writing to the console,
|
||||
// so don't do that here.
|
||||
|
||||
LOG(ERROR, LOG_CATEGORY, "JavaScript Error (%s, line %d): %s", file, line, message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user