class CookbookOmnifetch::GitCommandError

Public Class Methods

new(command, path, stderr = nil) click to toggle source
Calls superclass method
# File lib/cookbook-omnifetch/exceptions.rb, line 30
def initialize(command, path, stderr = nil)
  out =  "Git error: command `git #{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