use odie when commands encounter errors

This commit is contained in:
EricFromCanada
2021-01-26 15:36:43 -05:00
parent a72ddfdc67
commit 2e982cd2a2
10 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ module Homebrew
end
def download_artifact(url, dir, pr)
raise "Credentials must be set to access the Artifacts API" if GitHub.api_credentials_type == :none
odie "Credentials must be set to access the Artifacts API" if GitHub.api_credentials_type == :none
token = GitHub.api_credentials
curl_args = ["--header", "Authorization: token #{token}"]