Skip to content

Commit 3fa4475

Browse files
committed
Fix error message.
Fixes: #655
1 parent 60ca9af commit 3fa4475

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl fmt::Display for Error {
134134
ErrorKind::Char {
135135
character, index, ..
136136
} => {
137-
write!(f, "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-zA-Z], found `{}` at {}", character, index)
137+
write!(f, "invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `{}` at {}", character, index)
138138
}
139139
ErrorKind::SimpleLength { len } => {
140140
write!(

src/external/serde_support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ mod serde_tests {
302302
fn test_de_failure() {
303303
serde_test::assert_de_tokens_error::<Readable<Uuid>>(
304304
&[Token::Str("hello_world")],
305-
"UUID parsing failed: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-zA-Z], found `h` at 1",
305+
"UUID parsing failed: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], found `h` at 1",
306306
);
307307

308308
serde_test::assert_de_tokens_error::<Compact<Uuid>>(

0 commit comments

Comments
 (0)