agent-ctl: Simplify main
Make the `main()` function simpler.
@@ -324,11 +324,8 @@ fn real_main() -> Result<()> {
}
fn main() {
- match real_main() {
- Err(e) => {
+ if let Err(e) = real_main() {
eprintln!("ERROR: {}", e);
exit(1);
}
- _ => (),
- };
}
