class Berkshelf::BzrLocation::BzrCommandError

Public Class Methods

new(command, path = nil, stderr = nil) click to toggle source
Calls superclass method
# 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