Skip to content

Commit

Permalink
chore: add recordId when dying with "record not found"
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Voiturier <[email protected]>
  • Loading branch information
bvoiturier committed Oct 7, 2024
1 parent 29bd636 commit 0fc30ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object IssueBackgroundJobs extends BackgroundJobsHelper {
record <- credentialService
.findById(DidCommID(message.value.recordId.toString))
.provideSome(ZLayer.succeed(walletAccessContext))
.someOrElseZIO(ZIO.dieMessage("Record Not Found"))
.someOrElseZIO(ZIO.dieMessage(s"Record Not Found: ${message.value.recordId}"))
_ <- performIssueCredentialExchange(record)
.tapSomeError { case (walletAccessContext, errorResponse) =>
for {
Expand Down

0 comments on commit 0fc30ec

Please sign in to comment.