Merge pull request #346 from bhollis/master
Provide a stack trace for build errors
This commit is contained in:
commit
b1ba94cf22
|
@ -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
|
||||||
|
|
||||||
output_file
|
output_file
|
||||||
|
|
Loading…
Reference in a new issue