Skip to content

Commit faf2ee9

Browse files
yangshunclaude
andcommitted
fix: rename ToManyArgs to TooManyArgs in CdCommandError
Fix typo in enum variant name. The error message string was already correct ("Too many args"), only the variant identifier was wrong. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7a8ad8b commit faf2ee9

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)