Skip to content

Commit

Permalink
Merge pull request #238 from semiotic-ai/make-available-failed-error
Browse files Browse the repository at this point in the history
feat: make error public access on failed receipt
  • Loading branch information
gusinacio authored Aug 16, 2024
2 parents 04b134a + 7180b86 commit 9e1915b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tap_core/src/receipt/received_receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ impl ReceiptWithState<Checking> {
}
}

impl ReceiptWithState<Failed> {
pub fn error(self) -> ReceiptError {
self._state.error
}
}

impl<S> ReceiptWithState<S>
where
S: ReceiptState,
Expand Down

0 comments on commit 9e1915b

Please sign in to comment.