Bug 120090

Summary: [Windows] Report better error messages when WinLauncher/DRT Fail to Run
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: Tools / TestsAssignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Description Brent Fulgham 2013-08-20 14:23:39 PDT
WinLauncher, DumpRenderTree, and other command-line utilities consist of a simple loader program and a payload DLL that contains the actual program logic.  In some cases, users cannot access the payload. A generic "Unable to load DLL" error message is presented to the user, and the program ends.

To help remote debugging and to get better information from our test system, we should query the error status from Windows and include a human-readable version of the message for the user.

This patch adds this additional diagnostic information to the launch code paths.
Comment 1 Brent Fulgham 2013-08-20 15:12:02 PDT
Created attachment 209232 [details]
Patch
Comment 2 Tim Horton 2013-08-20 15:14:46 PDT
Comment on attachment 209232 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=209232&action=review

> Tools/win/DLLLauncher/DLLLauncherMain.cpp:177
> +        return fatalError(L"Unknown Program", L"Failed to determine name of executabl: " + getLastErrorString(::GetLastError()));

you lost a useful e here
Comment 3 Brent Fulgham 2013-08-20 15:24:04 PDT
Comment on attachment 209232 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=209232&action=review

>> Tools/win/DLLLauncher/DLLLauncherMain.cpp:177
>> +        return fatalError(L"Unknown Program", L"Failed to determine name of executabl: " + getLastErrorString(::GetLastError()));
> 
> you lost a useful e here

Whoops!
Comment 4 Brent Fulgham 2013-08-20 15:24:26 PDT
Committed r154367: <http://trac.webkit.org/changeset/154367>