mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Remove panic to appease the panic tracker for now
This commit is contained in:
parent
090473434d
commit
9fcefb3fd4
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue