mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Make build error message code a bit more compact
This commit is contained in:
parent
8f0cc92f1b
commit
7c9c4d03db
1 changed files with 3 additions and 5 deletions
|
@ -65,11 +65,9 @@ module Middleman::Cli
|
|||
action GlobAction.new(self, opts)
|
||||
|
||||
if @had_errors && !@debugging
|
||||
if defined?(Bundler)
|
||||
self.shell.say "There were errors during this build, re-run with `bundle exec 'middleman build --verbose'` to see the full exception."
|
||||
else
|
||||
self.shell.say "There were errors during this build, re-run with `middleman build --verbose` to see the full exception."
|
||||
end
|
||||
cmd = "middleman build --verbose"
|
||||
cmd = "bundle exec '#{cmd}'" if defined?(Bundler)
|
||||
self.shell.say "There were errors during this build, re-run with `#{cmd}` to see the full exception."
|
||||
end
|
||||
|
||||
exit(1) if @had_errors
|
||||
|
|
Loading…
Reference in a new issue