Skip to content

Commit

Permalink
fix oci errors
Browse files Browse the repository at this point in the history
oci errors updated to be even with https://github.com/opencontainers/distribution-spec/blob/main/spec.md#errors-2
* TAG_INVALID and MANIFEST_UNVERIFIED were removed from OCI spec: opencontainers/distribution-spec#206
* TOO_MANY_REQUESTS was added

Signed-off-by: jwhb <jwhy@jwhy.de>
  • Loading branch information
jwhb committed Jul 27, 2021
1 parent fed1437 commit 9cabdb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oci-distribution/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ pub enum OciErrorCode {
Denied,
/// This operation is unsupported
Unsupported,
/// Too many requests from client
Toomanyrequests,
}

#[cfg(test)]
Expand Down

0 comments on commit 9cabdb8

Please sign in to comment.