Exception: Esvien::CLIError

Inherits:
Error
  • Object
show all
Defined in:
lib/esvien/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, output) ⇒ CLIError

Returns a new instance of CLIError.



18
19
20
# File 'lib/esvien/errors.rb', line 18

def initialize(command, output)
  @command, @output = command, output
end

Instance Method Details

#messageObject



22
23
24
# File 'lib/esvien/errors.rb', line 22

def message
  "Error while executing Subversion command:\n\n    #{@command}\n\nOutput:\n\n#{@output.to_a.map{|line|"    #{line}"}}"
end