Exception: GitUp::GitError
- Inherits:
-
StandardError
- Object
- StandardError
- GitUp::GitError
- Defined in:
- lib/git-up.rb
Instance Method Summary collapse
-
#initialize(message, output = nil) ⇒ GitError
constructor
A new instance of GitError.
- #message ⇒ Object
Constructor Details
#initialize(message, output = nil) ⇒ GitError
Returns a new instance of GitError.
206 207 208 209 210 211 212 213 214 215 |
# File 'lib/git-up.rb', line 206 def initialize(, output=nil) @msg = "#{.red}" if output @msg << "\n" @msg << "Here's what Git said:".red @msg << "\n" @msg << output end end |
Instance Method Details
#message ⇒ Object
217 218 219 |
# File 'lib/git-up.rb', line 217 def @msg end |