From ffc5c3206e8a9ec980e9dd659a5eca381cf1bd0a Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Sun, 20 Dec 2020 11:34:07 +0900 Subject: [PATCH] repair message --- Library/Homebrew/dev-cmd/livecheck.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb index 3c08adf53b..a074f51933 100644 --- a/Library/Homebrew/dev-cmd/livecheck.rb +++ b/Library/Homebrew/dev-cmd/livecheck.rb @@ -97,8 +97,7 @@ module Homebrew onoe e end else - raise UsageError, "ENV['HOMEBREW_LIVECHECK_WATCHLIST'] or ~/.brew_livecheck_watchlist is required " \ - "if no formula or cask argument is passed" + raise UsageError, "A watchlist file is required when no arguments are given." end&.sort_by do |formula_or_cask| formula_or_cask.respond_to?(:token) ? formula_or_cask.token : formula_or_cask.name end