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



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 message
  "command exited with a nonzero status code #{@exit_code} (command: #{@command.join(' ')})"
end