Exception: ErrorDuringExecution

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

Overview

raised by safe_system in utils.rb

Instance Method Summary collapse

Constructor Details

#initialize(cmd, args = []) ⇒ ErrorDuringExecution

Returns a new instance of ErrorDuringExecution



521
522
523
524
# File 'Library/Homebrew/exceptions.rb', line 521

def initialize(cmd, args = [])
  args = args.map { |a| a.to_s.gsub " ", "\\ " }.join(" ")
  super "Failure while executing: #{cmd} #{args}"
end