add quotes and bundle exec to error message

This commit is contained in:
Seth Vargo 2013-01-24 12:40:24 -05:00
parent 1af216240a
commit 12753c5759

View file

@ -65,7 +65,11 @@ module Middleman::Cli
action GlobAction.new(self, opts)
if @had_errors && !@debugging
self.shell.say "There were errors during this build, re-run with --verbose to see the full exception."
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 --verbose` to see the full exception."
end
end
exit(1) if @had_errors