Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.

Commit b221a46

Browse files
authored
Merge pull request #5593 from MikeMcQuaid/missing-env-var-exception
brew.rb: duplicate MissingEnvironmentVariables exception.
2 parents 6b714cc + 57d7d4c commit b221a46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Library/Homebrew/brew.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
raise "Homebrew must be run under Ruby 2.3! You're running #{RUBY_VERSION}."
1111
end
1212

13+
# Also define here so we can rescue regardless of location.
14+
class MissingEnvironmentVariables < RuntimeError; end
15+
1316
begin
1417
require_relative "global"
1518
rescue MissingEnvironmentVariables => e

0 commit comments

Comments
 (0)