summaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
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}