Permalink
Browse files

Report the file has a bad include

  • Loading branch information...
1 parent 730806c commit 4e59bdd1f298fbd72ea224eaecb21126108265f5 Evan Phoenix committed Oct 29, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 rakelib/dependency_grapher.rb
@@ -141,19 +141,19 @@ def initialize(name, parser)
@includes = []
end
- def expand_filename
+ def expand_filename(node)
return if File.exist? @name
@parser.directories.each do |dir|
path = File.join dir, @name
return @name = path if File.file? path
end
- raise Errno::ENOENT, "unable to find file to include: #{@name}"
+ raise Errno::ENOENT, "unable to find file to include: #{@name} from #{node.name}"
end
def execute(defines, node)
- expand_filename
+ expand_filename(node)
if cached = self.class.cache[@name.to_sym]
@body = cached.body

0 comments on commit 4e59bdd

Please sign in to comment.