Loudly announce external pipeline errors and exit with failure.
This commit is contained in:
parent
0fba2ae2f6
commit
8cce9b8a8c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue