From b74bbd6c921ca745d244d8b491e985ee842b1e9e Mon Sep 17 00:00:00 2001 From: emma Date: Wed, 27 Dec 2023 22:47:06 -0700 Subject: [PATCH] fop(1): finished implementing sysexits --- src/fop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fop.rs b/src/fop.rs index 287660c..68cc06b 100644 --- a/src/fop.rs +++ b/src/fop.rs @@ -23,7 +23,7 @@ use std::{ }; extern crate sysexits; -use sysexits::EX_USAGE; +use sysexits::{ EX_DATAERR, EX_USAGE }; fn main() { let argv = args().collect::>(); @@ -67,7 +67,7 @@ fn main() { argv[0], index.to_string() ); - exit(1); + exit(EX_DATAERR); }); if let Some(mut child_stdin) = spawned.stdin.take() {