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.
This commit is contained in:
James Munns 2024-07-15 18:25:42 +02:00 committed by GitHub
parent 42a847d372
commit 6f80ce2f7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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