Print file path in error message

This commit is contained in:
Joscha 2021-11-19 01:15:34 +01:00
parent 2724d2aefe
commit 747e6db8a5
2 changed files with 6 additions and 3 deletions

View file

@ -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(())
}