Remove panic to appease the panic tracker for now

This commit is contained in:
Joshua Warner 2025-01-05 16:49:01 -08:00
parent 090473434d
commit 9fcefb3fd4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD

View file

@ -3,6 +3,8 @@
//! Typical usage:
//! `cargo run --bin dump_syntax -- full file.roc`
use std::process::exit;
use bumpalo::Bump;
use test_syntax::test_helpers::InputKind;
@ -24,7 +26,10 @@ fn main() {
}
};
let text = std::fs::read_to_string(&args[2]).unwrap();
let text = std::fs::read_to_string(&args[2]).unwrap_or_else(|e| {
eprintln!("Error reading file: {}", e);
exit(1);
});
let input = kind.with_text(&text);
let arena = Bump::new();
let output = input.parse_in(&arena);