From ac11bb6e53ad136851c8b0ee7c9c2fba5ab62f01 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Tue, 24 Dec 2013 12:55:44 -0800 Subject: [PATCH] prevent double logging --- cli.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cli.js b/cli.js index 20cf0e55..a2700e13 100644 --- a/cli.js +++ b/cli.js @@ -103,7 +103,7 @@ cli.configureLogger = function() { } function fatalError() { - cli.exit(1, fatalErrorMessage); + cli.exit(1); } if (env.opts.debug) { @@ -379,11 +379,7 @@ cli.generateDocs = function() { }; // TODO: docs -cli.exit = function(exitCode, errorMessage) { - if (errorMessage) { - logger.fatal(errorMessage); - } - +cli.exit = function(exitCode) { process.exit(exitCode || 0); };