From d9c64099220444b42f2e1fcfd6fc6aa2486f3ce8 Mon Sep 17 00:00:00 2001 From: cadorn Date: Fri, 19 Oct 2012 09:58:22 -0700 Subject: [PATCH] error out properly if post install throws error --- install.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.js b/install.js index 730fc12c..fcb1fb7d 100644 --- a/install.js +++ b/install.js @@ -61,8 +61,9 @@ try { suffix: "", name: "ace" }); -} catch (e) { - console.log("--- Ace Build error ---"); - console.log(e); - process.exit(0); + +} catch (err) { + console.error("--- Ace Build error ---"); + console.error(err.stack); + process.exit(1); } \ No newline at end of file