Skip to content

Commit

Permalink
Bail on nonexistent sources when rendering configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed Mar 29, 2011
1 parent da1ca53 commit f0f17e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/babushka/renderable.rb
Expand Up @@ -50,6 +50,7 @@ def render_erb source, custom_context

require 'digest/sha1'
def sha_of source
raise "Source doesn't exist: #{source.p}" unless source.p.exists?
Digest::SHA1.hexdigest(source.p.read)
end

Expand Down

0 comments on commit f0f17e7

Please sign in to comment.