From 8cce9b8a8cf465c5de9b663e99598b0c4e70b900 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Mon, 10 Aug 2015 10:00:23 -0700 Subject: [PATCH] Loudly announce external pipeline errors and exit with failure. --- .../lib/middleman-core/extensions/external_pipeline.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/middleman-core/lib/middleman-core/extensions/external_pipeline.rb b/middleman-core/lib/middleman-core/extensions/external_pipeline.rb index 2e4e3669..6fc82aa0 100644 --- a/middleman-core/lib/middleman-core/extensions/external_pipeline.rb +++ b/middleman-core/lib/middleman-core/extensions/external_pipeline.rb @@ -33,5 +33,8 @@ class Middleman::Extensions::ExternalPipeline < ::Middleman::Extension logger.info "== External: #{without_newline}" if without_newline.length > 0 end end + rescue ::Errno::ENOENT => e + logger.error "== External: Command failed with message: #{e.message}" + exit(1) end end