Print file path in error message
This commit is contained in:
parent
2724d2aefe
commit
747e6db8a5
2 changed files with 6 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ pub struct Opt {
|
|||
fn main() -> anyhow::Result<()> {
|
||||
let opt = Opt::from_args();
|
||||
let content = fs::read_to_string(&opt.file)?;
|
||||
let commands = parse::parse(&content)?;
|
||||
let commands = parse::parse(&opt.file, &content)?;
|
||||
println!("{:#?}", commands);
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue