From 800df2a2849625a91960d668918face8666c1c52 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:39:55 +0800 Subject: [PATCH] Improve error message Co-authored-by: Markus Reiter --- Library/Homebrew/dev-cmd/bump.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 4647766270..9cd3ce2706 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -87,7 +87,7 @@ module Homebrew end elsif args.tap tap = Tap.fetch(T.must(args.tap)) - raise UsageError, "`--tap` without `--auto` cannot be used with official taps." if tap.official? + raise UsageError, "`--tap` requires `--auto` for official taps." if tap.official? formulae = args.cask? ? [] : tap.formula_files.map { |path| Formulary.factory(path) } casks = args.formula? ? [] : tap.cask_files.map { |path| Cask::CaskLoader.load(path) }