Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
Fixed error handling in Report.find
Browse files Browse the repository at this point in the history
  • Loading branch information
koraktor committed Mar 13, 2012
1 parent 00c5290 commit d26ca6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metior/report.rb
Expand Up @@ -68,7 +68,7 @@ def find(file, report = self)
if File.exist? current_path
current_path
else
if superclass == Report
if superclass == Object
raise FileNotFoundError.new file, report
end
superclass.find file, report
Expand Down

0 comments on commit d26ca6b

Please sign in to comment.