Class: Berkshelf::HgLocation::HgCommandError
- Defined in:
- lib/berkshelf/locations/hg.rb
Instance Method Summary collapse
-
#initialize(command, response, path = nil) ⇒ HgCommandError
constructor
A new instance of HgCommandError.
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 |