{"record":{"id":"eb4a5afb50b1ec48","repo":"zeroclaw-labs/zeroclaw","slug":"cli-alias-rename-invalid","errorCode":"cli-alias-rename-invalid","errorMessage":"invalid new alias: {$message}","messagePattern":"invalid new alias: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/alias_cli/mod.rs","lineNumber":323,"sourceCode":"                        (\"section\", section.as_str()),\n                        (\"from\", from),\n                        (\"to\", to),\n                        (\"count\", count.as_str())\n                    ],\n                    \"renamed {$section}.{$from} → {$section}.{$to} (rewrote {$count} reference path(s))\"\n                )\n            );\n            Ok(())\n        }\n        Err(RenameError::NotFound(p)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-not-configured\",\n                &[(\"path\", p.as_str())],\n                \"{$path} is not configured\"\n            )\n        ),\n        Err(RenameError::InvalidName(m)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-rename-invalid\",\n                &[(\"message\", m.as_str())],\n                \"invalid new alias: {$message}\"\n            )\n        ),\n        Err(RenameError::Reserved(a)) => bail!(\n            \"{}\",\n            mta(\n                \"cli-alias-rename-reserved\",\n                &[(\"alias\", a.as_str())],\n                \"alias `{$alias}` is reserved and cannot be renamed\"\n            )\n        ),\n        Err(RenameError::PostCondition(m)) => bail!(\n            \"{}\",\n            mta(","sourceCodeStart":305,"sourceCodeEnd":341,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/alias_cli/mod.rs#L305-L341","documentation":"Fires in rename_config when the library's RenameError::InvalidName is returned — the proposed new alias fails name validation (reserved characters, empty, malformed). The error message from the underlying rename operation is interpolated into the CLI text via the cli-alias-rename-invalid Fluent key. The faulting input is the 'to' argument of the rename command; choose a name satisfying the alias naming rules.","triggerScenarios":"Thrown at src/alias_cli/mod.rs:323 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the alias according to the validation message: use allowed characters and a non-reserved, non-empty name.","Pick a different alias that does not collide with existing aliases or reserved names."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","contentChangedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}