mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
update ota script, rbind for dependency mounts, cli list-ingredients fix, and formatting
This commit is contained in:
@@ -97,7 +97,11 @@ impl WebSocket {
|
||||
if self.ping_state.is_some() {
|
||||
self.fused = true;
|
||||
break Poll::Ready(Some(Err(axum::Error::new(eyre!(
|
||||
"{}", t!("util.net.websocket-ping-timeout", timeout = format!("{PING_TIMEOUT:?}"))
|
||||
"{}",
|
||||
t!(
|
||||
"util.net.websocket-ping-timeout",
|
||||
timeout = format!("{PING_TIMEOUT:?}")
|
||||
)
|
||||
)))));
|
||||
}
|
||||
self.ping_state = Some((false, rand::random()));
|
||||
|
||||
@@ -1151,7 +1151,13 @@ pub fn apply_expr(input: jaq_core::Val, expr: &str) -> Result<jaq_core::Val, Err
|
||||
|
||||
let Some(expr) = expr else {
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("util.serde.failed-to-parse-expression", errors = format!("{:?}", errs))),
|
||||
eyre!(
|
||||
"{}",
|
||||
t!(
|
||||
"util.serde.failed-to-parse-expression",
|
||||
errors = format!("{:?}", errs)
|
||||
)
|
||||
),
|
||||
crate::ErrorKind::InvalidRequest,
|
||||
));
|
||||
};
|
||||
@@ -1167,7 +1173,13 @@ pub fn apply_expr(input: jaq_core::Val, expr: &str) -> Result<jaq_core::Val, Err
|
||||
|
||||
if !errs.is_empty() {
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("util.serde.failed-to-compile-expression", errors = format!("{:?}", errs))),
|
||||
eyre!(
|
||||
"{}",
|
||||
t!(
|
||||
"util.serde.failed-to-compile-expression",
|
||||
errors = format!("{:?}", errs)
|
||||
)
|
||||
),
|
||||
crate::ErrorKind::InvalidRequest,
|
||||
));
|
||||
};
|
||||
|
||||
@@ -50,7 +50,10 @@ pub async fn prompt<T, E: std::fmt::Display, Parse: FnMut(&str) -> Result<T, E>>
|
||||
}
|
||||
}
|
||||
ReadlineEvent::Eof | ReadlineEvent::Interrupted => {
|
||||
return Err(Error::new(eyre!("{}", t!("util.tui.aborted")), ErrorKind::Cancelled));
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("util.tui.aborted")),
|
||||
ErrorKind::Cancelled,
|
||||
));
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
@@ -83,7 +86,10 @@ pub async fn prompt_multiline<
|
||||
Err(e) => writeln!(&mut rl_ctx.shared_writer, "{e}")?,
|
||||
},
|
||||
ReadlineEvent::Eof | ReadlineEvent::Interrupted => {
|
||||
return Err(Error::new(eyre!("{}", t!("util.tui.aborted")), ErrorKind::Cancelled));
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("util.tui.aborted")),
|
||||
ErrorKind::Cancelled,
|
||||
));
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
@@ -119,7 +125,10 @@ pub async fn choose_custom_display<'t, T>(
|
||||
.await
|
||||
.map_err(map_miette)?;
|
||||
if choice.len() < 1 {
|
||||
return Err(Error::new(eyre!("{}", t!("util.tui.aborted")), ErrorKind::Cancelled));
|
||||
return Err(Error::new(
|
||||
eyre!("{}", t!("util.tui.aborted")),
|
||||
ErrorKind::Cancelled,
|
||||
));
|
||||
}
|
||||
let (idx, choice_str) = string_choices
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user