Bug 120090 - [Windows] Report better error messages when WinLauncher/DRT Fail to Run
Summary: [Windows] Report better error messages when WinLauncher/DRT Fail to Run
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-20 14:23 PDT by Brent Fulgham
Modified: 2013-08-20 15:24 PDT (History)
0 users

See Also:


Attachments
Patch (3.65 KB, patch)
2013-08-20 15:12 PDT, Brent Fulgham
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>