Skip to content

Commit

Permalink
update error message for missing '0x' prefix (#6869)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen-liang-CN authored Dec 17, 2024
1 parent 08a55d4 commit 7322339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/cairo-lang-utils/src/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ where
match s.strip_prefix("0x") {
Some(num_no_prefix) => BigUint::from_str_radix(num_no_prefix, 16)
.map_err(|error| serde::de::Error::custom(format!("{error}"))),
None => Err(serde::de::Error::custom(format!("{s} does not start with `0x` is missing."))),
None => Err(serde::de::Error::custom(format!(
"{s} does not start with `0x`, which is missing."
))),
}
}

Expand Down

0 comments on commit 7322339

Please sign in to comment.