warpdotdev/warp · error · anyhow::Error

--error-category and --error-message must be provided togeth

Error message

--error-category and --error-message must be provided together

What it means

Error "--error-category and --error-message must be provided together" thrown in warpdotdev/warp.

Source

Thrown at app/src/ai/agent_sdk/harness_support.rs:293

/// Routes to `report_clean_shutdown` or `report_error_shutdown` on the API client
/// depending on whether error arguments were provided.
fn report_shutdown(
    ctx: &mut AppContext,
    runner: ModelHandle<HarnessSupportRunner>,
    args: ReportShutdownArgs,
    output_format: OutputFormat,
) -> Result<()> {
    runner.update(ctx, |_, ctx| {
        let client = ServerApiProvider::as_ref(ctx).get_harness_support_client();

        ctx.spawn(
            async move {
                match (args.error_category, args.error_message) {
                    (Some(category), Some(message)) => {
                        client.report_error_shutdown(category, message).await
                    }
                    (None, None) => client.report_clean_shutdown().await,
                    _ => anyhow::bail!(
                        "--error-category and --error-message must be provided together"
                    ),
                }
            },
            move |_, result, ctx| match result {
                Ok(()) => {
                    match output_format {
                        OutputFormat::Json | OutputFormat::Ndjson => {
                            println!("{{}}");
                        }
                        OutputFormat::Pretty | OutputFormat::Text => {
                            println!("Shutdown reported.");
                        }
                    }
                    ctx.terminate_app(TerminationMode::ForceTerminate, None);
                }
                Err(err) => {
                    super::report_fatal_error(err, ctx);

View on GitHub (pinned to e72fd7aacb)

When it happens

Trigger: Thrown at app/src/ai/agent_sdk/harness_support.rs:293 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16). Data as JSON: /api/errors/594841da68fabee2. Report an issue: GitHub.