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:
Yorgos Saslis
2026-11-26 11:21:45 +01:00
committed by Daniel Norman
parent ff6c49c064
commit b13540d36f
2 changed files with 3 additions and 2 deletions
+2
View File
@@ -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
+1 -2
View File
@@ -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");
}
}