Skip to content

Commit

Permalink
For debugging purposes, put the path in the exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
marten committed Jan 21, 2012
1 parent 39de6fe commit e78e9c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/blimp/sources/fake_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ def initialize(tree)
end

def get_file(path)
raise SourceFile::NotFound if not files.has_key?(path)
raise SourceFile::NotFound, path if not files.has_key?(path)
SourceFile.new(path, files[path])
end

def get_dir(path)
raise SourceDir::NotFound if not dirs.has_key?(path)
raise SourceDir::NotFound, path if not dirs.has_key?(path)
SourceDir.new(path, dirs[path])
end

Expand Down

0 comments on commit e78e9c4

Please sign in to comment.