From 58f1cc2e6db2cb6d816eca18602272d5328c4a44 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Tue, 20 Jul 2021 17:42:55 -0400 Subject: [PATCH] BottleAPI: include formula name in error message --- Library/Homebrew/bottle_api.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/bottle_api.rb b/Library/Homebrew/bottle_api.rb index ef48eaaecd..8ee7f6c95f 100644 --- a/Library/Homebrew/bottle_api.rb +++ b/Library/Homebrew/bottle_api.rb @@ -66,7 +66,9 @@ module BottleAPI hash = fetch(name) bottle_tag = Utils::Bottles.tag.to_s - odie "No bottle available for current OS" if !hash["bottles"].key?(bottle_tag) && !hash["bottles"].key?("all") + if !hash["bottles"].key?(bottle_tag) && !hash["bottles"].key?("all") + odie "No bottle available for #{name} on the current OS" + end download_bottle(hash, bottle_tag)