Skip to content

Commit ea0ced5

Browse files
committed
print faulty json
1 parent c176323 commit ea0ced5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ impl Xtasks {
14011401
let stripped = StripComments::new(bytes);
14021402
let mut reader = serde_json::Deserializer::from_reader(stripped);
14031403
let value = serde_json::Value::deserialize(&mut reader)
1404-
.with_context(|| "deserializing json (excluding comments)")?;
1404+
.with_context(|| format!("deserializing json:\n{}", String::from_utf8_lossy(bytes)))?;
14051405
Ok(value)
14061406
}
14071407

0 commit comments

Comments
 (0)