Skip to content

Commit 2f67cad

Browse files
committed
explicit error message for nonexistent file
1 parent 02e3588 commit 2f67cad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/arduino_ci/arduino_cmd.rb

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ def verify_sketch(path)
157157
puts "Refusing to verify sketch with '#{ext}' extension -- rename it to '.ino'!"
158158
return false
159159
end
160+
unless File.exist? path
161+
puts "Can't verify nonexistent Sketch at '#{path}'!"
162+
return false
163+
end
160164
run("--verify", path, err: :out)
161165
end
162166

0 commit comments

Comments
 (0)