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.
175 176 177 178 179 180 181 182 183 184 |
# File 'lib/git-up.rb', line 175 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
186 187 188 |
# File 'lib/git-up.rb', line 186 def @msg end |