CanineHQ/canine · error · Cli::CommandFailedError

Command failed with exit code #{exit_status.exitstatus}

Error message

Command failed with exit code #{exit_status.exitstatus}

What it means

Error "Command failed with exit code #{exit_status.exitstatus}" thrown in CanineHQ/canine.

Source

Thrown at app/services/cli.rb:68

        end

        # Wait for process to complete or be killed
        exit_status = wait_thr.value

        # Ensure output threads complete
        stdout_thread.join
        stderr_thread.join

        # Stop monitoring thread
        stop_monitor_thread

        if @killable&.reload&.killed?
          @loggable.error("Process was killed by user request")
          raise CommandFailedError, "Process was killed"
        elsif exit_status.success?
          @loggable.success("Command succeeded")
        else
          raise CommandFailedError, "Command failed with exit code #{exit_status.exitstatus}"
        end

        exit_status
      end
    ensure
      stop_monitor_thread
    end

    private

    def start_monitor_thread
      @monitor_thread = Thread.new do
        loop do
          sleep 1 # Check every second

          if @killable.reload.killed?
            kill_process if @process
            break

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/cli.rb:68 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/58f18197368cf15f. Report an issue: GitHub.