CLI error handling
All checks were successful
CI/CD Pipeline / test (pull_request) Successful in 37s
CI/CD Pipeline / build (pull_request) Has been skipped
CI/CD Pipeline / release (pull_request) Has been skipped

This commit is contained in:
2026-01-02 16:44:38 -07:00
parent 4c704b8960
commit 2070c2e4ca
4 changed files with 35 additions and 5 deletions

View File

@@ -65,8 +65,8 @@ fn run_logic<'a>() -> Result<(), Error<'a>> {
let input_string = match input_file {
Some(input_path) => {
let mut buf = String::new();
let mut file = std::fs::File::open(input_path).unwrap();
file.read_to_string(&mut buf).unwrap();
let mut file = std::fs::File::open(input_path)?;
file.read_to_string(&mut buf)?;
buf
}
None => {