parser: return Err from main(), don't panic, so we see the error message
This commit is contained in:
parent
6198f327d7
commit
3dbaf070f3
1 changed files with 1 additions and 1 deletions
|
|
@ -16,6 +16,6 @@ struct Args {
|
|||
fn main() -> anyhow::Result<()> {
|
||||
let args = Args::parse();
|
||||
let repo = Repo::new(&args.repo);
|
||||
repo.compile(&args.target).unwrap();
|
||||
repo.compile(&args.target)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue