From 28bce3885a90cce422a46d2aa84c43a51576781a Mon Sep 17 00:00:00 2001 From: ChrisWren Date: Fri, 2 Aug 2013 08:22:25 -0700 Subject: [PATCH] Removed --stack option to always print stack traces for errors --- lib/grunt/cli.js | 4 ---- lib/grunt/fail.js | 11 ++++------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/grunt/cli.js b/lib/grunt/cli.js index a86da8f39..635b9ed35 100644 --- a/lib/grunt/cli.js +++ b/lib/grunt/cli.js @@ -63,10 +63,6 @@ var optlist = cli.optlist = { info: 'Enable debugging mode for tasks that support it.', type: Number }, - stack: { - info: 'Print a stack trace when exiting with a warning or fatal error.', - type: Boolean - }, force: { short: 'f', info: 'A way to force your way past warnings. Want a suggestion? Don\'t use this option, fix your code.', diff --git a/lib/grunt/fail.js b/lib/grunt/fail.js index 7b8048d92..722274a21 100644 --- a/lib/grunt/fail.js +++ b/lib/grunt/fail.js @@ -39,14 +39,11 @@ function writeln(e, mode) { grunt.log.writeln(msg); } -// If --stack is enabled, log the appropriate error stack (if it exists). function dumpStack(e) { - if (grunt.option('stack')) { - if (e.origError && e.origError.stack) { - console.log(e.origError.stack); - } else if (e.stack) { - console.log(e.stack); - } + if (e.origError && e.origError.stack) { + console.log(e.origError.stack); + } else if (e.stack) { + console.log(e.stack); } }