Skip to content

Commit c01b828

Browse files
committed
feat(dfget): add support for digest-manifest (#1561)
Signed-off-by: pirDOL <pirdol@qq.com>
1 parent 7f71dee commit c01b828

File tree

2 files changed

+585
-8
lines changed
  • dragonfly-client-core/src/error
  • dragonfly-client/src/bin/dfget

2 files changed

+585
-8
lines changed

dragonfly-client-core/src/error/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,14 @@ pub enum DFError {
238238
#[error("max number of files to download exceeded: {0}")]
239239
MaxDownloadFilesExceeded(usize),
240240

241+
/// DigestManifestParseFailed is the error for digest manifest parsing failure.
242+
#[error("digest manifest {filepath} parse failed: {error}")]
243+
DigestManifestParseFailed { filepath: String, error: String },
244+
245+
/// MissingDigestEntry is the error when a non-directory entry has no corresponding digest.
246+
#[error("missing digest for entry: {entry_url}")]
247+
MissingDigestEntry { entry_url: String },
248+
241249
/// Unsupported is the error for unsupported.
242250
#[error("unsupported {0}")]
243251
Unsupported(String),

0 commit comments

Comments
 (0)