From 32856b589934cd999f4144ec137556775032afa6 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 29 Aug 2010 14:35:32 -0700 Subject: [PATCH] Print a better error message if the extension isn't found. --- lib/compass/commands/unpack_extension.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/compass/commands/unpack_extension.rb b/lib/compass/commands/unpack_extension.rb index 1259bbc5..4b6d6c2b 100644 --- a/lib/compass/commands/unpack_extension.rb +++ b/lib/compass/commands/unpack_extension.rb @@ -34,6 +34,9 @@ module Compass def perform framework = Compass::Frameworks[options[:framework]] + unless framework + raise Compass::Error, "No extension named \"#{options[:framework]}\" was found." + end files = Dir["#{framework.path}/**/*"] extension_dir = File.join(Compass.configuration.extensions_path, framework.name) FileUtils.rm_rf extension_dir