~exitb/retrofit

beec59cf5a02da2cad3448a3e67cca658111c90d — exitb 1 year, 10 months ago 40a7071
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);
    }
}