Bug 921680 - Fix poor formatting of JS errors in workers (r=bent)

This commit is contained in:
Bill McCloskey 2013-09-30 12:24:37 -07:00
parent b68a8944d0
commit 6dd3f65065

View File

@ -1131,10 +1131,12 @@ public:
if (!logged || nsContentUtils::DOMWindowDumpEnabled()) {
NS_ConvertUTF16toUTF8 msg(aMessage);
NS_ConvertUTF16toUTF8 fname(aFilename);
#ifdef ANDROID
__android_log_print(ANDROID_LOG_INFO, "Gecko", "%s", msg.get());
__android_log_print(ANDROID_LOG_INFO, "Gecko", "JS error in worker: %s, %s:%u",
msg.get(), fname.get(), aLineNumber);
#endif
fputs(msg.get(), stderr);
fprintf(stderr, "JS error in worker: %s, %s:%u\n", msg.get(), fname.get(), aLineNumber);
fflush(stderr);
}