Print a better error message if the extension isn't found.
This commit is contained in:
parent
caa26626c0
commit
32856b5899
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user