lib/autobuild/importer.rb in autobuild-0.3 vs lib/autobuild/importer.rb in autobuild-0.4
- old
+ new
@@ -1,5 +1,7 @@
+require 'autobuild/exceptions'
+
class Importer
def initialize(options)
@options = options
end
@@ -13,17 +15,17 @@
puts "Not updating #{package.target}"
return
end
elsif File.exists?(srcdir)
- raise ImportException, "#{srcdir} exists but is not a directory"
+ raise ConfigException, "#{srcdir} exists but is not a directory"
else
begin
checkout(package)
patch(package)
- rescue ImportException => error
+ rescue ImportException
FileUtils.rm_rf package.srcdir
- raise error
+ raise
end
end
end
private