Provide a stack trace for build errors

This commit is contained in:
Ben Hollis 2012-04-05 22:59:49 -07:00
parent 30c41df909
commit 4c0c638892

View file

@ -110,9 +110,9 @@ module Middleman::Cli
else else
raise Thor::Error.new response.body raise Thor::Error.new response.body
end end
rescue rescue => e
say_status :error, output_file, :red say_status :error, output_file, :red
raise Thor::Error.new $! raise Thor::Error.new "#{e}\n#{e.backtrace.join("\n")}"
end end
end end
end end