From 3dbaf070f3fd3c28741191fdd98a1cbbf4647d22 Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 23 Jan 2025 18:38:09 -0700 Subject: [PATCH] parser: return Err from main(), don't panic, so we see the error message --- tools/src/bin/parser/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/src/bin/parser/main.rs b/tools/src/bin/parser/main.rs index e8c30ca..0b8e779 100644 --- a/tools/src/bin/parser/main.rs +++ b/tools/src/bin/parser/main.rs @@ -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(()) }