Skip to content

Commit

Permalink
[project] Are more explicit error when the build_directory does not e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
viteinfinite committed Dec 15, 2015
1 parent e909c76 commit 644db09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/slather/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def profdata_coverage_files
private :profdata_coverage_files

def profdata_coverage_dir
raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.exists?(self.build_directory)
if self.scheme
Dir["#{build_directory}/**/CodeCoverage/#{self.scheme}"].first
else
Expand Down Expand Up @@ -249,5 +250,6 @@ def input_format=(format)
@input_format = format
end
end

end
end

0 comments on commit 644db09

Please sign in to comment.