Loudly announce external pipeline errors and exit with failure.

This commit is contained in:
Thomas Reynolds 2015-08-10 10:00:23 -07:00
parent 0fba2ae2f6
commit 8cce9b8a8c

View file

@ -33,5 +33,8 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension
logger.info "== External: #{without_newline}" if without_newline.length > 0 logger.info "== External: #{without_newline}" if without_newline.length > 0
end end
end end
rescue ::Errno::ENOENT => e
logger.error "== External: Command failed with message: #{e.message}"
exit(1)
end end
end end