Merge pull request #11753 from Rylan12/no-bottle-message

BottleAPI: include formula name in error message
This commit is contained in:
Rylan Polster 2021-07-21 09:50:57 -04:00 committed by GitHub
commit 35c9df43a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,9 @@ module BottleAPI
hash = fetch(name) hash = fetch(name)
bottle_tag = Utils::Bottles.tag.to_s 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) download_bottle(hash, bottle_tag)