{"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":"Error \"invalid new alias: {$message}\" thrown in zeroclaw-labs/zeroclaw.","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":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}