lib/teapot/context.rb in teapot-0.8.0 vs lib/teapot/context.rb in teapot-0.8.1
- old
+ new
@@ -152,10 +152,11 @@
failed_to_load = Set.new
packages.collect do |package|
begin
definitions = load(package)
- rescue NonexistantTeapotError
+ rescue NonexistantTeapotError, IncompatibleTeapotError
+ # If the package doesn't exist or the teapot version is too old, it failed:
failed_to_load << package
end
end
return failed_to_load