Skip to content

Commit a243529

Browse files
committed
Also check for ConversionOverflowError
1 parent 2ff4638 commit a243529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/std/src/errors/std_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ where
116116
// specialization at home:
117117
let kind = if inner.is::<str::Utf8Error>() || inner.is::<string::FromUtf8Error>() {
118118
ErrorKind::Parsing
119-
} else if inner.is::<OverflowError>() {
119+
} else if inner.is::<ConversionOverflowError>() || inner.is::<OverflowError>() {
120120
ErrorKind::Overflow
121121
} else if inner.is::<serde_json::Error>()
122122
|| inner.is::<rmp_serde::encode::Error>()

0 commit comments

Comments
 (0)