From 9063a041f6b2e72f6e4a861c77ac16065dd5378b Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Tue, 9 May 2023 20:34:09 +0200 Subject: add list toggles to update and download; add mod remove output and fix errors --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db.rs') diff --git a/src/db.rs b/src/db.rs index 6c7e4f8..9ffbfe5 100644 --- a/src/db.rs +++ b/src/db.rs @@ -35,7 +35,7 @@ pub fn mods_get_all_ids(config: Cfg) -> Result, Box Err(Box::new(Error::new(ErrorKind::NotFound, "NO_MODS"))), + true => Err(Box::new(Error::new(ErrorKind::NotFound, "NO_MODS_ALL"))), false => Ok(mods), } } @@ -234,7 +234,7 @@ pub fn userlist_get_all_ids(config: Cfg, list_id: String) -> MLE> { } match mod_ids.is_empty() { - true => Err(MLError::new(ErrorType::DBError, "NO_MODS")), + true => Err(MLError::new(ErrorType::DBError, "NO_MODS_USERLIST")), false => Ok(mod_ids), } } -- cgit v1.2.3