Skip to content

Commit

Permalink
exit with code 1 on stdin format error (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawqup authored Sep 3, 2023
1 parent eb14a9c commit 4c04451
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ fn main() {
println!("{formatted}")
}
}
Err(err) => eprintln!("{err}"),
Err(err) => {
eprintln!("{err}");
exit(1)
}
}
return;
}
Expand Down

0 comments on commit 4c04451

Please sign in to comment.