Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
Merge 1ae4d19 into 78a19ef
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoga07 committed May 4, 2021
2 parents 78a19ef + 1ae4d19 commit 5b6b4f7
Show file tree
Hide file tree
Showing 10 changed files with 935 additions and 169 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rand_core = "~0.5.1"
rmp-serde = "~0.15.1"
serde_bytes = "0.11.5"
signature = "1.1.0"
sn_data_types = "~0.18"
sn_data_types = "~0.18.3"
thiserror = "1.0.23"
threshold_crypto = "~0.4.0"
xor_name = "1.1.10"
Expand Down
13 changes: 13 additions & 0 deletions src/client/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,22 @@ pub enum Error {
/// Node failed to delete the requested data for some reason.
#[error("Failed to delete requested data")]
FailedToDelete,
/// Node does not manage any section funds.
#[error("Node does not currently manage any section funds")]
NoSectionFunds,
/// Node does not manage any metadata, so is likely not a fully prepared elder yet.
#[error("Node does not currently manage any section metadata")]
NoSectionMetaData,
/// Node does not manage any immutable chunks.
#[error("Node does not currently manage any immutable chunks")]
NoImmutableChunks,
/// Node is currently churning so cannot perform the request.
#[error("Cannot complete request due to churning of funds")]
NodeChurningFunds,
/// The node hasn't left the section, and was not marked for relocation during reward operations
#[error("Node is not being relocated")]
NodeWasNotRelocated,

/// There was an error in the target section of a message. Probably related to section keys.
#[error("Target section error")]
TargetSection(#[from] TargetSectionError),
Expand Down

0 comments on commit 5b6b4f7

Please sign in to comment.