From 623d73cc0a32f36f81cf673c8ab3b5587fb7fe36 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Thu, 27 Sep 2012 23:20:04 -0700 Subject: [PATCH] Print a helpful message when encountering an unknown command --- middleman-core/lib/middleman-core/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/cli.rb b/middleman-core/lib/middleman-core/cli.rb index f152530f..77f91624 100644 --- a/middleman-core/lib/middleman-core/cli.rb +++ b/middleman-core/lib/middleman-core/cli.rb @@ -71,7 +71,7 @@ module Middleman end if klass.nil? - super + raise Thor::Error.new "There's no '#{meth}' command for Middleman. Try 'middleman help' for a list of commands." else args.unshift(task) if task klass.start(args, :shell => self.shell)