diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-08-03 04:56:28 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-08-03 04:56:28 +0000 |
commit | 3b951869505b7f1515b9c4b78f19455a235246bd (patch) | |
tree | e46e55b6a97aed6931e01da4695512735006d532 /src/error.rs | |
parent | 65c453b9b8499eb4a273bfd6f013608b9af23844 (diff) | |
parent | 6b39def739b0f5174d6c842bd798df179541db60 (diff) | |
download | riki-3b951869505b7f1515b9c4b78f19455a235246bd.tar.gz |
Merge branch 'mtime' into 'main'
feat: set output file modification times
See merge request larswirzenius/riki!30
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 756d7f0..aee8252 100644 --- a/src/error.rs +++ b/src/error.rs @@ -52,4 +52,16 @@ pub enum SiteError { #[error("attempt to use definition lists in Markdown: {0:?}")] DefinitionList(String), + + #[error("failed to get file metadata: {0}")] + FileMetadata(PathBuf, #[source] std::io::Error), + + #[error("failed to get file modification time: {0}")] + FileMtime(PathBuf, #[source] std::io::Error), + + #[error("failed to set modification time for file {0}")] + Utimensat(PathBuf, #[source] std::io::Error), + + #[error("failed to convert time to Unix time")] + UnixTime(#[source] std::time::SystemTimeError), } |