1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Merge pull request #750 from sethvargo/better_error_message

Add quotes and bundle exec to error message
This commit is contained in:
Ben Hollis 2013-01-25 20:13:35 -08:00
commit 8f0cc92f1b

View file

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