Better error reporting.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2010-02-05 20:18:18 -08:00
parent cbd0d6e6a2
commit c523e706e9
+2 -2
View File
@@ -212,7 +212,7 @@ function loadExecutableAndResources(/*Bundle*/ aBundle, /*BOOL*/ shouldExecute)
if (aBundle._loadStatus === CFBundleLoading)
return success();
function failure()
function failure(/*Error*/ anError)
{
var loadRequests = aBundle._loadRequests,
count = loadRequests.length;
@@ -229,7 +229,7 @@ function loadExecutableAndResources(/*Bundle*/ aBundle, /*BOOL*/ shouldExecute)
aBundle._eventDispatcher.dispatchEvent(
{
type:"error",
error:new Error("Could not recognize executable code format in Bundle " + aBundle),
error:anError || new Error("Could not recognize executable code format in Bundle " + aBundle),
bundle:aBundle
});