diff options
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<dyn std::error::Error>> { | |||
148 | list(config, input).await | 148 | list(config, input).await |
149 | }, | 149 | }, |
150 | Cmd::Update => { | 150 | Cmd::Update => { |
151 | update(config, input).await | 151 | match update(config, input).await { |
152 | Ok(..) => Ok(()), | ||
153 | Err(..) => Err(Box::new(MLError::new(ErrorType::Other, "UPDATE_ERR"))) | ||
154 | } | ||
152 | }, | 155 | }, |
153 | Cmd::Setup => { | 156 | Cmd::Setup => { |
154 | setup(config).await | 157 | setup(config).await |