Skip to content

Commit cd83dde

Browse files
committed
DLLLauncherMain print to console instead of opening window on fatal error
https://bugs.webkit.org/show_bug.cgi?id=206537 Reviewed by Fujii Hironori. Source/JavaScriptCore: * shell/DLLLauncherMain.cpp: (fatalError): Tools: * win/DLLLauncher/DLLLauncherMain.cpp: (fatalError): Canonical link: https://commits.webkit.org/222956@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 845065d commit cd83dde

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

Source/JavaScriptCore/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2020-04-05 Gus Caplan <me@gus.host> and Ross Kirsling <ross.kirsling@sony.com>
2+
3+
DLLLauncherMain print to console instead of opening window on fatal error
4+
https://bugs.webkit.org/show_bug.cgi?id=206537
5+
6+
Reviewed by Fujii Hironori.
7+
8+
* shell/DLLLauncherMain.cpp:
9+
(fatalError):
10+
111
2020-04-05 Ross Kirsling <ross.kirsling@sony.com>
212

313
JSC shell shouldn't treat NUL as a terminator when printing a JS string

Source/JavaScriptCore/shell/DLLLauncherMain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ static bool prependPath(const std::wstring& directoryToPrepend)
9494
static int fatalError(const std::wstring& programName, const std::wstring& message)
9595
{
9696
std::wstring caption = programName + L" can't open.";
97+
#if USE_CONSOLE_ENTRY_POINT
98+
fwprintf(stderr, L"%s\n%s\n", caption.c_str(), message.c_str());
99+
#else
97100
::MessageBoxW(0, message.c_str(), caption.c_str(), MB_ICONERROR);
101+
#endif
98102
return 1;
99103
}
100104

Tools/ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2020-04-05 Gus Caplan <me@gus.host> and Ross Kirsling <ross.kirsling@sony.com>
2+
3+
DLLLauncherMain print to console instead of opening window on fatal error
4+
https://bugs.webkit.org/show_bug.cgi?id=206537
5+
6+
Reviewed by Fujii Hironori.
7+
8+
* win/DLLLauncher/DLLLauncherMain.cpp:
9+
(fatalError):
10+
111
2020-04-05 Don Olmstead <don.olmstead@sony.com>
212

313
[CMake] Use WEBKIT_EXECUTABLE in MiniBrowser

Tools/win/DLLLauncher/DLLLauncherMain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ static bool prependPath(const wstring& directoryToPrepend)
9696
static int fatalError(const wstring& programName, const wstring& message)
9797
{
9898
wstring caption = programName + L" can't open.";
99+
#if USE_CONSOLE_ENTRY_POINT
100+
fwprintf(stderr, L"%s\n%s\n", caption.c_str(), message.c_str());
101+
#else
99102
::MessageBoxW(0, message.c_str(), caption.c_str(), MB_ICONERROR);
103+
#endif
100104
return 1;
101105
}
102106

0 commit comments

Comments
 (0)