Skip to content

Commit 9e1915b

Browse files
authored
Merge pull request #238 from semiotic-ai/make-available-failed-error
feat: make error public access on failed receipt
2 parents 04b134a + 7180b86 commit 9e1915b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tap_core/src/receipt/received_receipt.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ impl ReceiptWithState<Checking> {
120120
}
121121
}
122122

123+
impl ReceiptWithState<Failed> {
124+
pub fn error(self) -> ReceiptError {
125+
self._state.error
126+
}
127+
}
128+
123129
impl<S> ReceiptWithState<S>
124130
where
125131
S: ReceiptState,

0 commit comments

Comments
 (0)