Skip to content

Commit

Permalink
Mention type checking documentation when brew typecheck fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 13, 2020
1 parent 0e9b664 commit 3e63aca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/dev-cmd/typecheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ def typecheck
srb_exec += ["--file", "../#{args.file}"] if args.file
srb_exec += ["--dir", "../#{args.dir}"] if args.dir
end
Homebrew.failed = !system(*srb_exec)
success = system(*srb_exec)
return if success

$stderr.puts "Check #{Formatter.url("https://docs.brew.sh/Typechecking")} for " \
"more information on how to resolve these errors."
Homebrew.failed = true
end
end
end

0 comments on commit 3e63aca

Please sign in to comment.