From ecc4743fdec43eb578e9c35bb008c68909f1517e Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Wed, 4 Sep 2024 17:32:19 +0200 Subject: better error handling --- src/data/list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/data/list.rs') 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 @@ -use crate::{config::Cfg, db::{config_get_current_list, lists_get}, error::MLE}; +use crate::{config::Cfg, db::{config_get_current_list, lists_get}, errors::MLE}; use super::modloader::Modloader; @@ -14,6 +14,6 @@ impl List { /// # Errors pub fn get_current_list(config: &Cfg) -> MLE { let id = config_get_current_list(config)?; - lists_get(config, &id) + Ok(lists_get(config, &id)?) } } -- cgit v1.2.3