aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index ae2dd20c4..edd5cf1d1 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -45,6 +45,18 @@ class FormulaUnavailableError < RuntimeError
end
end
+class OperationInProgressError < RuntimeError
+ def initialize name
+ message = <<-EOS.undent
+ Operation already in progress for #{name}
+ Another active Homebrew process is already using #{name}.
+ Please wait for it to finish or terminate it to continue.
+ EOS
+
+ super message
+ end
+end
+
module Homebrew
class InstallationError < RuntimeError
attr :formula