Class: Berkshelf::HgLocation::HgCommandError

Inherits:
HgError
  • Object
show all
Defined in:
lib/berkshelf/locations/hg.rb

Instance Method Summary collapse

Constructor Details

#initialize(command, response, path = nil) ⇒ HgCommandError

Returns a new instance of HgCommandError.



19
20
21
22
23
# File 'lib/berkshelf/locations/hg.rb', line 19

def initialize(command, response, path = nil)
  super "Hg error: command `hg #{command}` failed. If this error " \
    "persists, try removing the cache directory at `#{path}'." \
    "\nstdout:#{response.stdout}\nstderr:#{response.stderr}"
end