Exit with non-zero code at error
1 files changed, 2 insertions(+), 0 deletions(-) M src/main.rs
M src/main.rs => src/main.rs +2-0
@@ 12,6 12,7 @@ use map_result::{AndThenResult, MapErr}; use std::fs::File; use std::io::{stdin, stdout, Read, Write}; use std::io::{BufReader, BufWriter}; use std::process::exit; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; @@ 188,5 189,6 @@ fn retrofit() -> Result<()> { fn main() { if let Err(error) = retrofit() { eprintln!("Stopped with an error: {:?}", error); exit(1); } }