cli: get update endpoint from build

This commit is contained in:
Connor Peet
2022-09-22 12:00:39 -07:00
parent 5b24e93b35
commit 54ca489a5b
4 changed files with 30 additions and 5 deletions

View File

@@ -316,6 +316,14 @@ impl std::fmt::Display for ServerHasClosed {
}
}
#[derive(Debug)]
pub struct UpdatesNotConfigured();
impl std::fmt::Display for UpdatesNotConfigured {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "Update service is not configured")
}
}
#[derive(Debug)]
pub struct ServiceAlreadyRegistered();
@@ -408,7 +416,8 @@ makeAnyError!(
CannotForwardControlPort,
ServerHasClosed,
ServiceAlreadyRegistered,
WindowsNeedsElevation
WindowsNeedsElevation,
UpdatesNotConfigured
);
impl From<reqwest::Error> for AnyError {