From c523e706e965ffc7b5d31f78d6d1ab092df4d2fb Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Fri, 5 Feb 2010 20:18:18 -0800 Subject: [PATCH] Better error reporting. Reviewed by me. --- Objective-J/CFBundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objective-J/CFBundle.js b/Objective-J/CFBundle.js index cd4bb711a..12a0a1471 100644 --- a/Objective-J/CFBundle.js +++ b/Objective-J/CFBundle.js @@ -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 });