Skip to content

Commit

Permalink
Remove error filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgahan-arikan committed Aug 31, 2023
1 parent 09e5bee commit 72d5fcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/guard/src/signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@ export class GuardSigner implements signers.SapientSigner {
this.requests.delete(id)
}
} catch (e) {
console.log('in GuardSigner.evaluateRequest: ', e)
// The guard signer may reject the request for a number of reasons
// like for example, if it's being the first signer (it waits for other signers to sign first)
if (e.cause.includes('signer does not match latest image hash')) {
this.onError?.(e)
}
// We always forward the error here and filter on client side.
this.onError?.(e)
}
}

Expand Down

0 comments on commit 72d5fcf

Please sign in to comment.