Skip to content

Commit 53aa60e

Browse files
committed
fix decode error message
1 parent 5d8b40b commit 53aa60e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/aurora/types/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Decode<'_, Aurora> for f32 {
7777
let f = <f64 as Decode<Aurora>>::decode(value)?;
7878

7979
if f.gt(&(f32::MAX as f64)) {
80-
return Err("".into());
80+
Err("value is larger than f32::MAX".into())
8181
} else {
8282
Ok(f as f32)
8383
}

0 commit comments

Comments
 (0)