Add error log when attempting to upgrade

I was attempting to test upgrades on MacOS, and was a bit confused at the ECONNREFUSED error.

Having this log would help others avoiding troubleshooting this until it is supported.

Includes-commit: 6f80ce2f7a
Replicated-from: https://github.com/cloudflare/pingora/pull/327
This commit is contained in:
James Munns 2024-07-15 16:25:42 +00:00 committed by Yuchen Wu
parent 21f258399a
commit 3f9cc4ead8
2 changed files with 2 additions and 1 deletions

2
.bleep
View file

@ -1 +1 @@
a5e77a0c20967fd9ff223682be0fc043a6f35514
28f94f2a402bbf66341bdac8fa670caf5b7311e9

View file

@ -179,6 +179,7 @@ pub fn get_fds_from<P>(_path: &P, _payload: &mut [u8]) -> Result<(Vec<RawFd>, us
where
P: ?Sized + NixPath + std::fmt::Display,
{
log::error!("Upgrade is not currently supported outside of Linux platforms");
Err(Errno::ECONNREFUSED)
}