Skip to content

Commit

Permalink
chore(voucher): add value too large error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Sep 22, 2024
1 parent ee7bf1a commit 688144c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/voucher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub enum VoucherError {
UnorderedPartialVouchers,
NoValue,
InvalidRecoveryId,
VoucherValueTooLarge,
}

impl std::error::Error for VoucherError {}
Expand All @@ -29,6 +30,7 @@ impl fmt::Display for VoucherError {
Self::UnorderedPartialVouchers => write!(f, "Unordered partial vouchers"),
Self::NoValue => write!(f, "Receipts have no value"),
Self::InvalidRecoveryId => SignError::InvalidRecoveryId.fmt(f),
Self::VoucherValueTooLarge => write!(f, "Voucher value too large"),
}
}
}
Expand Down

0 comments on commit 688144c

Please sign in to comment.