Fix typo in error msg (#5411)

Part of https://github.com/KittyCAD/modeling-app/issues/5355
This commit is contained in:
Adam Chalmers
2025-02-19 11:40:17 -06:00
committed by GitHub
parent 3dfc2c86e1
commit 0804aecc63

View File

@ -204,7 +204,7 @@ async fn straight_line(
(Some(_), Some(_)) => {
return Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![args.source_range],
message: "You cannot give both `end` and `end_absolute` params, you have to choose one or the other"
message: "You cannot give both `end` and `endAbsolute` params, you have to choose one or the other"
.to_owned(),
}));
}
@ -213,7 +213,7 @@ async fn straight_line(
(None, None) => {
return Err(KclError::Semantic(KclErrorDetails {
source_ranges: vec![args.source_range],
message: "You must supply either `end` or `end_absolute` arguments".to_owned(),
message: "You must supply either `end` or `endAbsolute` arguments".to_owned(),
}));
}
};