lib/outliers/evaluation.rb in outliers-0.5.0 vs lib/outliers/evaluation.rb in outliers-0.5.1

- old
+ new

@@ -103,10 +103,12 @@ rescue NameError raise Outliers::Exceptions::UnknownCollection.new "Unknown collection '#{name}'." end def account(name) - @run.account.fetch name + account = @run.account.fetch name, nil + raise Outliers::Exceptions::UnknownAccount.new "Unkown account '#{name}'." unless account + account end def merged_account(name, options) account(name).merge! options.keys_to_s account(name).merge :name => name