{"record":{"id":"bf5d2be39fccf5f2","repo":"tinyhumansai/openhuman","slug":"missing-value-for-message","errorCode":null,"errorMessage":"missing value for --message","messagePattern":"missing value for --message","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":243,"sourceCode":"/// DSN, the command exits non-zero with a diagnostic instead of silently\n/// producing no telemetry.\n///\n/// Only compiled with the `crash-reporting` feature; the `#[cfg(not(...))]`\n/// companion below returns a disabled-build error (mirrors the `mcp` CLI\n/// precedent, where the subcommand arm + top-level help stay compiled and the\n/// handler reports the build fact rather than a bogus \"unknown command\").\n#[cfg(feature = \"crash-reporting\")]\nfn run_sentry_test_command(args: &[String]) -> Result<()> {\n    let mut message: Option<String> = None;\n    let mut do_panic = false;\n    let mut i = 0usize;\n\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--message\" => {\n                message = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow::anyhow!(\"missing value for --message\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--panic\" => {\n                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)\"","sourceCodeStart":225,"sourceCodeEnd":261,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L225-L261","documentation":"CLI argument parsing in run_sentry_test_command (only compiled with the crash-reporting feature): `--message` was passed with no following value. Usage error; supply the event body text, e.g. `--message \"test ping\"` (default is the sentry-test ping string).","triggerScenarios":"Thrown at src/core/cli.rs:243 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the text, e.g. `openhuman sentry-test --message \"ping\"`","Use the inline form `--message=text`","Omit --message; the default body \"openhuman sentry-test ping\" is used"],"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"}