Skip to content

Commit 5edd42e

Browse files
committed
editoast: fix train schedule deserialization error message
1 parent 113dbd9 commit 5edd42e

File tree

1 file changed

+1
-1
lines changed
  • editoast/editoast_schemas/src/train_schedule

1 file changed

+1
-1
lines changed

editoast/editoast_schemas/src/train_schedule/margins.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<'de> Deserialize<'de> for Margins {
3737
let InternalMargins { boundaries, values } = InternalMargins::deserialize(deserializer)?;
3838
if boundaries.len() + 1 != values.len() {
3939
return Err(serde::de::Error::custom(
40-
"The number of boudaries and values must be the same",
40+
"It's expected to have one more value than boundaries",
4141
));
4242
}
4343
Ok(Margins { boundaries, values })

0 commit comments

Comments
 (0)