Skip to content

Commit

Permalink
Better logging when you try to access an unknown target
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed Nov 16, 2009
1 parent 5c70806 commit fd6290f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/sproutcore/models/manifest.rb
Expand Up @@ -277,7 +277,10 @@ def entry_for(filename, opts = {})
manifest = self
filename = target_name
else
manifest = target.target_for(target_name).manifest_for(self.variation)
if (_manifest_target = target.target_for(target_name)).nil?
throw "Cannot file target #{target_name} for entry #{filename}"
end
manifest = _manifest_target.manifest_for(self.variation)
manifest.build!
end

Expand Down

0 comments on commit fd6290f

Please sign in to comment.