Skip to content

Commit

Permalink
Print spec arg errors to stderr (crystal-lang#4910)
Browse files Browse the repository at this point in the history
  • Loading branch information
bew authored and RX14 committed Sep 1, 2017
1 parent e2b2685 commit d74c3f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ OptionParser.parse! do |opts|
if location =~ /\A(.+?)\:(\d+)\Z/
Spec.add_location $1, $2.to_i
else
puts "location #{location} must be file:line"
exit
STDERR.puts "location #{location} must be file:line"
exit 1
end
end
opts.on("--junit_output OUTPUT_DIR", "generate JUnit XML output") do |output_dir|
Expand All @@ -106,7 +106,7 @@ OptionParser.parse! do |opts|
end

unless ARGV.empty?
puts "Error: unknown argument '#{ARGV.first}'"
STDERR.puts "Error: unknown argument '#{ARGV.first}'"
exit 1
end

Expand Down

0 comments on commit d74c3f3

Please sign in to comment.