{"record":{"id":"91532d0f6c4b9a76","repo":"tinyhumansai/openhuman","slug":"unknown-sentry-test-arg-other","errorCode":null,"errorMessage":"unknown sentry-test arg: {other}","messagePattern":"unknown sentry-test arg: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":267,"sourceCode":"                do_panic = true;\n                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman sentry-test [--message <text>] [--panic]\");\n                println!();\n                println!(\"  --message <text>  Body of the Error-level event sent to Sentry\");\n                println!(\"                    (default: \\\"openhuman sentry-test ping\\\")\");\n                println!(\"  --panic           After capturing the event, trigger a panic so the\");\n                println!(\"                    panic integration reports it as a separate event.\");\n                println!();\n                println!(\n                    \"Requires OPENHUMAN_CORE_SENTRY_DSN (or the legacy OPENHUMAN_SENTRY_DSN alias)\"\n                );\n                println!(\"at runtime, or baked into the binary at build time via option_env!. On\");\n                println!(\"success, prints the event UUID to stdout.\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown sentry-test arg: {other}\")),\n        }\n    }\n\n    let client = sentry::Hub::current().client();\n    let dsn_host = client\n        .as_deref()\n        .and_then(|c| c.dsn())\n        .map(|d| d.host().to_string());\n\n    match &dsn_host {\n        Some(host) => eprintln!(\"[sentry-test] Sentry client active (dsn host: {host})\"),\n        None => {\n            return Err(anyhow::anyhow!(\n                \"Sentry is not initialized in this binary — no DSN is resolvable. \\\n                 Set OPENHUMAN_CORE_SENTRY_DSN (or the legacy OPENHUMAN_SENTRY_DSN alias) \\\n                 in the environment (or rebuild with it defined at compile time) and try again.\"\n            ));\n        }","sourceCodeStart":249,"sourceCodeEnd":285,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L249-L285","documentation":"CLI argument parsing in run_sentry_test_command: an unrecognized argument was passed to the sentry-test subcommand (only --message, --panic and -h/--help are accepted). Usage error naming the offending token in `{other}`; check spelling or run with --help for accepted flags.","triggerScenarios":"Thrown at src/core/cli.rs:267 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `openhuman sentry-test --help` to see accepted flags","Remove or correct the misspelled argument"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}