Fix failed to to cannot

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-29 19:28:02 +01:00
parent 2766f8e423
commit 6f2bd9c92f
39 changed files with 198 additions and 192 deletions

View File

@@ -36,7 +36,7 @@ func PreventReplayAttack(
var assertion coredata.SAMLAssertion
exists, err := assertion.CheckExists(ctx, conn, assertionID)
if err != nil {
return fmt.Errorf("failed to check assertion ID: %w", err)
return fmt.Errorf("cannot check assertion ID: %w", err)
}
if exists {
@@ -52,7 +52,7 @@ func PreventReplayAttack(
}
if err := assertion.Insert(ctx, conn, scope); err != nil {
return fmt.Errorf("failed to store assertion ID: %w", err)
return fmt.Errorf("cannot store assertion ID: %w", err)
}
return nil