mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 04:30:21 +00:00
use odie when commands encounter errors
This commit is contained in:
@@ -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}"]
|
||||
|
||||
Reference in New Issue
Block a user