From 4c0c63889220e61cad523167bd08f712381b61eb Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Thu, 5 Apr 2012 22:59:49 -0700 Subject: [PATCH] Provide a stack trace for build errors --- middleman-core/lib/middleman-core/cli/build.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index e4ab33b8..d9e2ec37 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -110,9 +110,9 @@ module Middleman::Cli else raise Thor::Error.new response.body end - rescue + rescue => e say_status :error, output_file, :red - raise Thor::Error.new $! + raise Thor::Error.new "#{e}\n#{e.backtrace.join("\n")}" end end end