mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
re-enable builder error catching
This commit is contained in:
parent
f1074ed1e2
commit
6582a2f75a
1 changed files with 4 additions and 4 deletions
|
@ -38,16 +38,16 @@ module Middleman
|
|||
|
||||
request_path = destination.sub(/^#{::Middleman::Builder.shared_instance.build_dir}/, "")
|
||||
|
||||
# begin
|
||||
begin
|
||||
destination, request_path = ::Middleman::Builder.shared_instance.reroute_builder(destination, request_path)
|
||||
|
||||
response = ::Middleman::Builder.shared_rack.get(request_path.gsub(/\s/, "%20"))
|
||||
create_file(destination, response.body, config) if response.status == 200
|
||||
|
||||
destination
|
||||
# rescue
|
||||
# say_status :error, destination, :red
|
||||
# end
|
||||
rescue
|
||||
say_status :error, destination, :red
|
||||
end
|
||||
end
|
||||
end
|
||||
include ThorActions
|
||||
|
|
Loading…
Reference in a new issue