feat(cron::update) auto update git repo and update db index

This commit is contained in:
lumither committed 2024-11-27 00:18:08 -08:00
1 parent 99a19d8d9e
commit bacaea80a3
18 files changed
+882 -39

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("missing front-matter field: id")]
MissingID,
#[error("invalid file id: {}", msg)]
InvalidID { msg: String },
#[error("invalid front-matter: {}", msg)]
InvalidFrontMatter { msg: String },
#[error("fs error: {}", msg)]
FSError { msg: String },
}