Exception: OperationInProgressError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/exceptions.rb

Overview

Raised when another Homebrew operation is already in progress.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ OperationInProgressError

Returns a new instance of OperationInProgressError.


297
298
299
300
301
302
303
304
305
# File 'Library/Homebrew/exceptions.rb', line 297

def initialize(name)
  message = <<~EOS
    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