Skip to content

Commit 62dbcab

Browse files
yangshunclaudebranchseer
authored
fix: rename ToManyArgs to TooManyArgs in CdCommandError (#281)
## Summary - Fix typo in `CdCommandError::ToManyArgs` enum variant name → `TooManyArgs` - The `#[error]` message string was already correct ("Too many args"), only the Rust identifier was wrong ## Test plan - [x] `cargo test -p vite_task_plan` passes - [x] Plan snapshot tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: branchseer <3612422+branchseer@users.noreply.github.com>
1 parent e35c8af commit 62dbcab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/vite_task_plan/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub enum CdCommandError {
1717
NoHomeDirectory,
1818

1919
#[error("Too many args for 'cd' command")]
20-
ToManyArgs,
20+
TooManyArgs,
2121
}
2222

2323
#[derive(Debug, thiserror::Error)]

crates/vite_task_plan/src/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async fn plan_task_as_execution_node(
157157
}
158158
[dir] => Path::new(dir.as_str()).into(),
159159
_ => {
160-
return Err(Error::CdCommand(CdCommandError::ToManyArgs));
160+
return Err(Error::CdCommand(CdCommandError::TooManyArgs));
161161
}
162162
};
163163
cwd = cwd.join(cd_target.as_ref()).into();

0 commit comments

Comments
 (0)