lib/ree/link_dsl.rb in ree-1.0.17 vs lib/ree/link_dsl.rb in ree-1.0.18

- old
+ new

@@ -164,11 +164,12 @@ dep_package = current_package.deps.detect do |d| d.name == package_name end if dep_package.nil? - raise_error( - "Package :#{package_name} is not added as dependency for :#{current_package_name} package\npackage path: #{File.join(Ree.root_dir, current_package.entry_rpath)}" + raise Ree::Error.new( + "Package :#{package_name} is not added as dependency for :#{current_package_name} package\npackage path: #{File.join(Ree.root_dir, current_package.entry_rpath)}\nclass:#{self.name}", + :invalid_dsl_usage ) end end end end