Print a better error message if the extension isn't found.

This commit is contained in:
Chris Eppstein 2010-08-29 14:35:32 -07:00
parent caa26626c0
commit 32856b5899

View File

@ -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