Skip to content

Commit

Permalink
persistence: fix DataError display
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 24, 2023
1 parent ce5ee6b commit a251ad3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/persistence/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl<E: Error> From<InventoryDataError<E>> for InventoryError<E> {
}

#[derive(Debug, Display, Error, From)]
#[display(inner)]
#[display(doc_comments)]
pub enum DataError {
/// the consignment was not validated by the local host and thus can't be
/// imported.
Expand All @@ -208,8 +208,8 @@ pub enum DataError {
/// mismatch between witness seal chain and anchor chain.
ChainMismatch,

#[display(inner)]
#[from]
#[display(inner)]
Reveal(RevealError),

#[from]
Expand All @@ -220,15 +220,18 @@ pub enum DataError {
OutpointUnknown(OutputSeal, ContractId),

#[from]
#[display(inner)]
Confinement(confinement::Error),

#[from]
#[display(inner)]
IfaceImpl(IfaceImplError),

/// schema {0} doesn't implement interface {1}.
NoIfaceImpl(SchemaId, IfaceId),

#[from]
#[display(inner)]
HeightResolver(Box<dyn Error>),

/// Information is concealed.
Expand Down

0 comments on commit a251ad3

Please sign in to comment.