Skip to content

Commit

Permalink
dont' error out if a file goes away
Browse files Browse the repository at this point in the history
  • Loading branch information
smparkes committed Nov 25, 2009
1 parent 95ca141 commit ff69e93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/watchr/script.rb
Expand Up @@ -262,7 +262,11 @@ def call_action_for(path, event_type = DEFAULT_EVENT_TYPE)
pathname = path
path = rel_path(path).to_s
# $stderr.print "dob #{path} #{depended_on_by(path).join(' ')}\n"
depended_on_by(Pathname(pathname).realpath.to_s).each do |dependence|
string = nil
begin
string = Pathname(pathname).realpath.to_s
rescue Errno::ENOENT; end
string && depended_on_by(string).each do |dependence|
# $stderr.print "for caf #{Pathname(pathname).realpath.to_s}\n";
call_action_for(dependence, event_type)
end
Expand Down

0 comments on commit ff69e93

Please sign in to comment.