From 89193143f90e1b8cbb91445d14942fa39509acbb Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 9 Jan 2023 23:12:52 +0100 Subject: implemented more Error (dumb) --- src/input.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index d048775..28a0b7b 100644 --- a/src/input.rs +++ b/src/input.rs @@ -148,7 +148,10 @@ pub async fn get_input(config: Cfg) -> Result<(), Box> { list(config, input).await }, Cmd::Update => { - update(config, input).await + match update(config, input).await { + Ok(..) => Ok(()), + Err(..) => Err(Box::new(MLError::new(ErrorType::Other, "UPDATE_ERR"))) + } }, Cmd::Setup => { setup(config).await -- cgit v1.2.3