Skip to content

Commit 410bb6c

Browse files
committed
print errors to stderr
1 parent b5020af commit 410bb6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def start_fuzzing_process(file_path, writer)
6262

6363
def run
6464
if ARGV.length != 1
65-
puts 'USAGE: fuzz.rb <FILE TO FUZZ>'
65+
STDERR.puts('USAGE: fuzz.rb <FILE TO FUZZ>')
6666
exit(1)
6767
end
6868
file_path = ARGV[0].freeze
6969

7070
# TODO: ensure we don't load this file
7171
if !fuzz_function_exists?(file_path)
72-
puts "ERROR: `fuzz` function doesn’t exist in #{file_path}"
72+
STDERR.puts("ERROR: `fuzz` function doesn’t exist in #{file_path}")
7373
exit(1)
7474
end
7575

0 commit comments

Comments
 (0)