CanineHQ/canine · error · Cli::CommandFailedError

Command `#{command.join(' ')}` failed with exit code #{statu

Error message

Command `#{command.join(' ')}` failed with exit code #{status.exitstatus}: #{stderr}

What it means

Error "Command `#{command.join(' ')}` failed with exit code #{status.exitstatus}: #{stderr}" thrown in CanineHQ/canine.

Source

Thrown at app/services/cli.rb:7

module Cli
  class CommandFailedError < StandardError; end
  class RunAndReturnOutput
    def call(command, envs: {})
      command = Array(command)
      stdout, stderr, status = Open3.capture3(envs, *command)
      raise CommandFailedError, "Command `#{command.join(' ')}` failed with exit code #{status.exitstatus}: #{stderr}" unless status.success?
      stdout
    end
  end

  class RunAndLog
    attr_reader :output
    def initialize(loggable, killable: nil, log_command: false)
      @loggable = loggable
      @killable = killable
      @process = nil
      @monitor_thread = nil
      @output = ""
      @log_command = log_command
    end

    def call(command, envs: {}, clear_output: true)
      if clear_output
        @output = ""

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/cli.rb:7 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23). Data as JSON: /api/errors/7f50dbb90d2108b9. Report an issue: GitHub.