From 73223394e6dbdc91d19cf26d8180aeb5322a221d Mon Sep 17 00:00:00 2001 From: chen-liang-CN Date: Tue, 17 Dec 2024 16:28:18 +0000 Subject: [PATCH] update error message for missing '0x' prefix (#6869) --- crates/cairo-lang-utils/src/bigint.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/cairo-lang-utils/src/bigint.rs b/crates/cairo-lang-utils/src/bigint.rs index f53ec18ae44..559c5267613 100644 --- a/crates/cairo-lang-utils/src/bigint.rs +++ b/crates/cairo-lang-utils/src/bigint.rs @@ -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." + ))), } }