Exception: Berkshelf::GitCommandError
- Inherits:
-
GitError
- Object
- StandardError
- BerkshelfError
- GitError
- Berkshelf::GitCommandError
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(command, path, stderr = nil) ⇒ GitCommandError
constructor
A new instance of GitCommandError.
Methods inherited from BerkshelfError
Constructor Details
#initialize(command, path, stderr = nil) ⇒ GitCommandError
Returns a new instance of GitCommandError.
556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/berkshelf/errors.rb', line 556 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 |