Skip to content

Commit 3c55303

Browse files
committed
fix(types): fix NumericError message causing test failures
The error message for NumericError::Overflow had an extra space between "a" and "value", which was causing unexpected test failures due to string comparison mismatches. This commit removes the extra space to ensure error messages match expected test outputs.
1 parent 870efdf commit 3c55303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl fmt::Display for NumericError {
7373

7474
match *self {
7575
Negative{ ref field, value } => write!(f, "expected an unsigned numeric value however the value was negative (field name: {} value: {})", field, value),
76-
Overflow { ref field, value } => write!(f, "a value larger than `u32::MAX` was unexpectedly encountered (field name: {} Value: {})", field, value),
76+
Overflow { ref field, value } => write!(f, "a value larger than `u32::MAX` was unexpectedly encountered (field name: {} Value: {})", field, value),
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)