Exception: Nanoc::Extra::Piper::Error
- Inherits:
-
Nanoc::Errors::Generic
- Object
- StandardError
- Nanoc::Errors::Generic
- Nanoc::Extra::Piper::Error
- Defined in:
- lib/nanoc/extra/piper.rb
Instance Method Summary (collapse)
-
- (Error) initialize(command, exit_code)
constructor
A new instance of Error.
-
- (Object) message
Constructor Details
- (Error) initialize(command, exit_code)
Returns a new instance of Error
8 9 10 11 |
# File 'lib/nanoc/extra/piper.rb', line 8 def initialize(command, exit_code) @command = command @exit_code = exit_code end |
Instance Method Details
- (Object) message
13 14 15 |
# File 'lib/nanoc/extra/piper.rb', line 13 def "command exited with a nonzero status code #{@exit_code} (command: #{@command.join(' ')})" end |