Exception: Rubycc::Rmake::CommandFailedError

Inherits:
ExecutionError show all
Defined in:
lib/rubycc/rmake/errors.rb

Overview

A recipe command exited non-zero (or an internal utility reported failure) and the line was not marked to ignore errors (-). Carries the exit reason when one is known (a missing external tool, a utility's own message).

Instance Attribute Summary

Attributes inherited from ExecutionError

#command, #target

Instance Method Summary collapse

Constructor Details

#initialize(target:, command:, reason: nil) ⇒ CommandFailedError

Returns a new instance of CommandFailedError.



53
54
55
56
# File 'lib/rubycc/rmake/errors.rb', line 53

def initialize(target:, command:, reason: nil)
  super(reason ? "recipe command failed (#{reason})" : "recipe command failed",
        target: target, command: command)
end