Exits with exec
syscall "errno" (if available)
This commit is contained in:
parent
b4c447968b
commit
82313ffc44
@ -82,5 +82,10 @@ fn main() {
|
||||
.env_remove(DEFAULT_WRITE_STYLE_ENV)
|
||||
.exec();
|
||||
error!("Error while executing {:?}: {}", args.arguments, error);
|
||||
process::exit(1);
|
||||
|
||||
process::exit(if let Some(raw_os_error) = error.raw_os_error() {
|
||||
raw_os_error
|
||||
} else {
|
||||
1
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user