summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
authorfxqnlr <[email protected]>2023-05-09 20:34:09 +0200
committerfxqnlr <[email protected]>2023-05-09 20:34:09 +0200
commit9063a041f6b2e72f6e4a861c77ac16065dd5378b (patch)
tree03d34dfe9ff05de2dd74d3afe1cde87712f1b59a /src/db.rs
parent0c7ba29d3e17c47e5fc9cffe78c28a0019d453b7 (diff)
downloadmodlist-9063a041f6b2e72f6e4a861c77ac16065dd5378b.tar
modlist-9063a041f6b2e72f6e4a861c77ac16065dd5378b.tar.gz
modlist-9063a041f6b2e72f6e4a861c77ac16065dd5378b.zip
add list toggles to update and download;
add mod remove output and fix errors
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 2 insertions, 2 deletions
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<Vec<String>, Box<dyn std::error::
35 } 35 }
36 36
37 match mods.is_empty() { 37 match mods.is_empty() {
38 true => Err(Box::new(Error::new(ErrorKind::NotFound, "NO_MODS"))), 38 true => Err(Box::new(Error::new(ErrorKind::NotFound, "NO_MODS_ALL"))),
39 false => Ok(mods), 39 false => Ok(mods),
40 } 40 }
41} 41}
@@ -234,7 +234,7 @@ pub fn userlist_get_all_ids(config: Cfg, list_id: String) -> MLE<Vec<String>> {
234 } 234 }
235 235
236 match mod_ids.is_empty() { 236 match mod_ids.is_empty() {
237 true => Err(MLError::new(ErrorType::DBError, "NO_MODS")), 237 true => Err(MLError::new(ErrorType::DBError, "NO_MODS_USERLIST")),
238 false => Ok(mod_ids), 238 false => Ok(mod_ids),
239 } 239 }
240} 240}