Exception: Nanoc::Extra::Piper::Error

Inherits:
Nanoc::Errors::Generic show all
Defined in:
lib/nanoc/extra/piper.rb

Instance Method Summary (collapse)

Constructor Details

- (Error) initialize(command, exit_code)

Returns a new instance of Error



11
12
13
14
# File 'lib/nanoc/extra/piper.rb', line 11

def initialize(command, exit_code)
  @command   = command
  @exit_code = exit_code
end

Instance Method Details

- (Object) message



16
17
18
# File 'lib/nanoc/extra/piper.rb', line 16

def message
  "command exited with a nonzero status code #{@exit_code} (command: #{@command.join(' ')})"
end