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

Commit

Permalink
refactor(err): rename NoSuchData to DataNotFound and add the address
Browse files Browse the repository at this point in the history
information to it

BREAKING CHANGE: this renames one of the Error variants
  • Loading branch information
lionel-faber committed Apr 27, 2021
1 parent b3f4acc commit 463c6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/client/errors.rs
Expand Up @@ -7,6 +7,7 @@
// specific language governing permissions and limitations relating to use of the SAFE Network
// Software.

use crate::client::Address;
use crate::section_info::Error as TargetSectionError;
use serde::{Deserialize, Serialize};
use sn_data_types::PublicKey;
Expand Down Expand Up @@ -53,8 +54,8 @@ pub enum Error {
#[error("Serialization error: {0}")]
Serialization(String),
/// Requested data not found
#[error("Requested data not found")]
NoSuchData,
#[error("Requested data not found: {0:?}")]
DataNotFound(Address),
/// No history found for PublicKey
#[error("No history found for PublicKey: {0}")]
NoHistoryForPublicKey(sn_data_types::PublicKey),
Expand Down
2 changes: 1 addition & 1 deletion src/client/sender.rs
Expand Up @@ -217,7 +217,7 @@ impl Display for EntitySignature {
}

///
#[derive(Debug, Hash, Eq, PartialEq, Clone, Serialize, Deserialize)]
#[derive(Debug, Hash, Eq, PartialEq, Clone, Serialize, Deserialize, PartialOrd, Ord)]
pub enum Address {
///
Client(XorName),
Expand Down

0 comments on commit 463c6c7

Please sign in to comment.