Merge branch 'main' into dj
This commit is contained in:
commit
bf06e91be5
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user