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:
janwas
2005-12-14 18:32:02 +00:00
parent 00a15f0ccb
commit 0e40dfc480
4 changed files with 24 additions and 7 deletions
+4 -2
View File
@@ -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);
}