From 7180b86e2c5ef5e2009518d6cd2ed8fe16b337eb Mon Sep 17 00:00:00 2001 From: Carlos V Date: Thu, 1 Aug 2024 23:01:31 +0000 Subject: [PATCH] feat: make error public access on failed receipt Signed-off-by: Carlos V --- tap_core/src/receipt/received_receipt.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tap_core/src/receipt/received_receipt.rs b/tap_core/src/receipt/received_receipt.rs index 82f439ad..77c22d54 100644 --- a/tap_core/src/receipt/received_receipt.rs +++ b/tap_core/src/receipt/received_receipt.rs @@ -120,6 +120,12 @@ impl ReceiptWithState { } } +impl ReceiptWithState { + pub fn error(self) -> ReceiptError { + self._state.error + } +} + impl ReceiptWithState where S: ReceiptState,