From 12753c57594357ab0575f122bdf8fb6d5e1311ec Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 24 Jan 2013 12:40:24 -0500 Subject: [PATCH 1/2] add quotes and bundle exec to error message --- middleman-core/lib/middleman-core/cli/build.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index 44ac161d..5dfec9d7 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -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 From 95fa217cec1229d253f4d48f7e283af9c7747d84 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 25 Jan 2013 21:23:24 -0500 Subject: [PATCH 2/2] Say middleman build instead of just middleman --- middleman-core/lib/middleman-core/cli/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index 5dfec9d7..2d830f93 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -68,7 +68,7 @@ module Middleman::Cli 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." + self.shell.say "There were errors during this build, re-run with `middleman build --verbose` to see the full exception." end end