mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 921680 - Fix poor formatting of JS errors in workers (r=bent)
This commit is contained in:
parent
b68a8944d0
commit
6dd3f65065
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user