mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-06-12 19:21:10 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ff9568f4d | |||
| cf0c28b468 |
@@ -208,18 +208,14 @@ impl SolidityCompiler for Resolc {
|
|||||||
anyhow::bail!("Compilation failed with an error: {message}");
|
anyhow::bail!("Compilation failed with an error: {message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
let parsed: SolcStandardJsonOutput = {
|
let parsed = serde_json::from_slice::<SolcStandardJsonOutput>(&stdout)
|
||||||
let mut deserializer = serde_json::Deserializer::from_slice(&stdout);
|
.map_err(|e| {
|
||||||
deserializer.disable_recursion_limit();
|
anyhow::anyhow!(
|
||||||
serde::de::Deserialize::deserialize(&mut deserializer)
|
"failed to parse resolc JSON output: {e}\nstderr: {}",
|
||||||
.map_err(|e| {
|
String::from_utf8_lossy(&stderr)
|
||||||
anyhow::anyhow!(
|
)
|
||||||
"failed to parse resolc JSON output: {e}\nstderr: {}",
|
})
|
||||||
String::from_utf8_lossy(&stderr)
|
.context("Failed to parse resolc standard JSON output")?;
|
||||||
)
|
|
||||||
})
|
|
||||||
.context("Failed to parse resolc standard JSON output")?
|
|
||||||
};
|
|
||||||
|
|
||||||
tracing::debug!(
|
tracing::debug!(
|
||||||
output = %serde_json::to_string(&parsed).unwrap(),
|
output = %serde_json::to_string(&parsed).unwrap(),
|
||||||
|
|||||||
Reference in New Issue
Block a user