Merge branch 'main' into dj

This commit is contained in:
dtb 2024-07-08 11:20:52 -06:00
commit bf06e91be5
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -29,8 +29,11 @@ use getopt::GetOpt;
extern crate sysexits;
use sysexits::{ EX_OK, EX_OSERR, EX_USAGE };
extern crate strerror;
use strerror::StrError;
fn oserr(s: &str, e: Error) -> ExitCode {
eprintln!("{}: {}", s, e);
eprintln!("{}: {}", s, e.strerror());
ExitCode::from(EX_OSERR as u8)
}