Compare commits

...

2 Commits

Author SHA1 Message Date
Samuel FORESTIER
82313ffc44 Exits with exec syscall "errno" (if available) 2022-06-03 20:00:05 +02:00
Samuel FORESTIER
b4c447968b Improves project description wording 2022-06-03 19:51:59 +02:00
3 changed files with 8 additions and 3 deletions

@ -2,7 +2,7 @@
name = "delayr"
version = "0.1.0"
authors = ["Samuel FORESTIER <dev+delayr@samuel.domains>"]
description = "Rust UNIX system tool that sleeps a random duration before executing another program"
description = "A Rust UNIX system tool that randomly delays another program execution"
edition = "2021"
homepage = "https://git.forestier.app/HorlogekSkynet/delayr"
license = "MIT"

@ -1,6 +1,6 @@
# delayr
> Rust UNIX system tool that sleeps a random duration before executing another program
> A Rust UNIX system tool that randomly delays another program execution
## Build

@ -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
});
}