From b13540d36fb1cdcbd0aff431a4b32ec24bd8f0aa Mon Sep 17 00:00:00 2001 From: Yorgos Saslis Date: Thu, 26 Nov 2026 10:44:03 +0100 Subject: [PATCH] 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. --- explorer/CHANGELOG.md | 2 ++ explorer/crates/radicle-httpd/src/main.rs | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/explorer/CHANGELOG.md b/explorer/CHANGELOG.md index 43d6204ca..f32297c36 100644 --- a/explorer/CHANGELOG.md +++ b/explorer/CHANGELOG.md @@ -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 diff --git a/explorer/crates/radicle-httpd/src/main.rs b/explorer/crates/radicle-httpd/src/main.rs index edc081ccc..790914f6e 100644 --- a/explorer/crates/radicle-httpd/src/main.rs +++ b/explorer/crates/radicle-httpd/src/main.rs @@ -92,8 +92,7 @@ fn parse_options() -> anyhow::Result { } } } else { - tracing::error!("Provided socket address isn't a valid path."); - process::exit(0); + bail!("--listen: unix socket address is not a valid path"); } }