lib/pg_objects/manager.rb in pg_objects-0.2.3 vs lib/pg_objects/manager.rb in pg_objects-0.2.4

- old
+ new

@@ -46,10 +46,10 @@ def find_object(dep_name) result = @objects.select { |obj| obj.name == dep_name } raise AmbiguousDependencyError if result.size > 1 - raise DependencyNotExistError if result.empty? + raise DependencyNotExistError, dep_name if result.empty? result[0] end end end