diff options
author | fxqnlr <[email protected]> | 2024-09-04 17:32:19 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-04 17:32:19 +0200 |
commit | ecc4743fdec43eb578e9c35bb008c68909f1517e (patch) | |
tree | 73916114bc2bff8c72f759f5aae11a95d4dede22 /src/data/list.rs | |
parent | 11e64fc7560de3cd0def718edf68c31e3dc8be72 (diff) | |
download | modlist-refactor.tar modlist-refactor.tar.gz modlist-refactor.zip |
better error handlingrefactor
Diffstat (limited to 'src/data/list.rs')
-rw-r--r-- | src/data/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/list.rs b/src/data/list.rs index 0045b7a..b886af1 100644 --- a/src/data/list.rs +++ b/src/data/list.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{config::Cfg, db::{config_get_current_list, lists_get}, error::MLE}; | 1 | use crate::{config::Cfg, db::{config_get_current_list, lists_get}, errors::MLE}; |
2 | 2 | ||
3 | use super::modloader::Modloader; | 3 | use super::modloader::Modloader; |
4 | 4 | ||
@@ -14,6 +14,6 @@ impl List { | |||
14 | /// # Errors | 14 | /// # Errors |
15 | pub fn get_current_list(config: &Cfg) -> MLE<List> { | 15 | pub fn get_current_list(config: &Cfg) -> MLE<List> { |
16 | let id = config_get_current_list(config)?; | 16 | let id = config_get_current_list(config)?; |
17 | lists_get(config, &id) | 17 | Ok(lists_get(config, &id)?) |
18 | } | 18 | } |
19 | } | 19 | } |