From a6d2c42402cea9bbbb02ec13d5a44b1ef8820f61 Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Fri, 19 Feb 2010 02:43:39 -0800 Subject: [PATCH] Only log errors in setupEnvironment. --- common.jake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common.jake b/common.jake index 2192e465b..f17d5f2c8 100644 --- a/common.jake +++ b/common.jake @@ -180,10 +180,10 @@ function reforkWithPackages() reforkWithPackages(); -function throwIfNotRequireError(e) { +function handleSetupEnvironmentError(e) { if (String(e).indexOf("require error")==-1) { print("setupEnvironment: " + e); - throw e; + //throw e; } } @@ -199,13 +199,13 @@ function setupEnvironment() global.BundleTask = OBJECTIVE_J_JAKE.BundleTask; } catch (e) { - throwIfNotRequireError(e); + handleSetupEnvironmentError(e); } try { require("objective-j").OBJJ_INCLUDE_PATHS.push(FILE.join($BUILD_CONFIGURATION_DIR, "CommonJS", "cappuccino", "Frameworks")); } catch (e) { - throwIfNotRequireError(e); + handleSetupEnvironmentError(e); } try { @@ -216,7 +216,7 @@ function setupEnvironment() // print("no blend!") } catch (e) { - throwIfNotRequireError(e); + handleSetupEnvironmentError(e); } }