summaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-01-09 23:12:52 +0100
committerfxqnlr <[email protected]>2023-01-09 23:12:52 +0100
commit89193143f90e1b8cbb91445d14942fa39509acbb (patch)
tree4aeb60ae2aceffc2468589c615ead9dc7079a34d /src/input.rs
parent94d7656cce4ca751be545eeb2ff52bdea1f37fa0 (diff)
downloadmodlist-89193143f90e1b8cbb91445d14942fa39509acbb.tar
modlist-89193143f90e1b8cbb91445d14942fa39509acbb.tar.gz
modlist-89193143f90e1b8cbb91445d14942fa39509acbb.zip
implemented more Error (dumb)
Diffstat (limited to 'src/input.rs')
-rw-r--r--src/input.rs5
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