From 8c76a4ebd3266969f99c94f52e4dd27077e1e292 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Tue, 16 Dec 2014 15:28:36 -0800 Subject: [PATCH] Fail the surrounding Jake task if exec'd tool has non-zero exit code. --- Jakefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jakefile b/Jakefile index af0ddd0fed2..09b7e1efba4 100644 --- a/Jakefile +++ b/Jakefile @@ -465,14 +465,10 @@ function exec(cmd, completeHandler) { complete(); }); ex.addListener("error", function(e, status) { - console.error("Process exited with code " + status); - complete(); + fail("Process exited with code " + status); }) - try{ - ex.run(); - } catch(e) { - console.log('Exception: ' + e) - } + + ex.run(); } function cleanTestDirs() {