Class: Berkshelf::BzrLocation::BzrCommandError
- Defined in:
- lib/berkshelf/locations/bzr.rb
Instance Method Summary collapse
-
#initialize(command, path = nil, stderr = nil) ⇒ BzrCommandError
constructor
A new instance of BzrCommandError.
Constructor Details
#initialize(command, path = nil, stderr = nil) ⇒ BzrCommandError
Returns a new instance of BzrCommandError.
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/berkshelf/locations/bzr.rb', line 19 def initialize(command, path = nil, stderr = nil) out = "Bzr error: command `bzr #{command}` failed. If this error " out << "persists, try removing the cache directory at `#{path}'." if stderr out << "Output from the command:\n\n" out << stderr end super(out) end |