Skip to content

Commit

Permalink
Print a better error message if the extension isn't found.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Aug 29, 2010
1 parent caa2662 commit 32856b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/compass/commands/unpack_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def initialize(working_path, options)

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
Expand Down

0 comments on commit 32856b5

Please sign in to comment.