mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
httpd: Exit with 1 on a pathless Unix socket
`--listen unix:` logged an error but exited with 0. Fail like every other invalid option does.
This commit is contained in:
committed by
Daniel Norman
parent
ff6c49c064
commit
b13540d36f
@@ -20,6 +20,8 @@
|
||||
- **Errors for interrupted git responses**: An archive download cut short by a
|
||||
killed or failed `git archive`, or a clone whose `git http-backend` is killed,
|
||||
now ends in a transfer error instead of a complete-looking 200
|
||||
- **Exit code for a pathless Unix socket**: `--listen unix:` now exits 1 instead
|
||||
of 0
|
||||
|
||||
## radicle-httpd + radicle-search 0.31.0
|
||||
|
||||
|
||||
@@ -92,8 +92,7 @@ fn parse_options() -> anyhow::Result<httpd::Options> {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
tracing::error!("Provided socket address isn't a valid path.");
|
||||
process::exit(0);
|
||||
bail!("--listen: unix socket address is not a valid path");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user