Skip to content

Commit 644db09

Browse files
committed
[project] Are more explicit error when the build_directory does not exist
1 parent e909c76 commit 644db09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/slather/project.rb

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def profdata_coverage_files
105105
private :profdata_coverage_files
106106

107107
def profdata_coverage_dir
108+
raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.exists?(self.build_directory)
108109
if self.scheme
109110
Dir["#{build_directory}/**/CodeCoverage/#{self.scheme}"].first
110111
else
@@ -249,5 +250,6 @@ def input_format=(format)
249250
@input_format = format
250251
end
251252
end
253+
252254
end
253255
end

0 commit comments

Comments
 (0)