lib/processing.rb in runeblog-0.3.18 vs lib/processing.rb in runeblog-0.3.19

- old
+ new

@@ -10,10 +10,10 @@ end def stale?(src, dst, deps, force = false) meh = File.new("/tmp/dammit-#{src.gsub(/\//, "-")}", "w") log!(enter: __method__, args: [src, dst], level: 3) - raise "Source #{src} not found in #{Dir.pwd}" unless File.exist?(src) + raise FileNotFound("#{Dir.pwd}/#{src}") unless File.exist?(src) return true if force return true unless File.exist?(dst) return true if newer?(src, dst) deps.each {|dep| return true if newer?(dep, dst) } return false