feature: report path on failed abigen load (#205)
This commit is contained in:
parent
7b0af7e73e
commit
3e5f7a795f
|
@ -171,7 +171,10 @@ fn get_local_contract(path: &Path) -> Result<String> {
|
|||
Cow::Borrowed(path)
|
||||
};
|
||||
|
||||
let json = fs::read_to_string(path).context("failed to read artifact JSON file")?;
|
||||
let json = fs::read_to_string(&path).context(format!(
|
||||
"failed to read artifact JSON file with path {}",
|
||||
&path.display()
|
||||
))?;
|
||||
Ok(json)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue