mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:47:32 +00:00
fix: correct error messages for policy queries (#8722)
# Which Problems Are Solved Errors messages are mixed up for some policies # How the Problems Are Solved Define new error IDs and correct the messages. # Additional Changes None # Additional Context None
This commit is contained in:
@@ -173,9 +173,9 @@ func prepareLockoutPolicyQuery(ctx context.Context, db prepareDatabase) (sq.Sele
|
||||
)
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-63mtI", "Errors.PasswordComplexityPolicy.NotFound")
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-38pZnUemLP", "Errors.IAM.PasswordLockoutPolicy.NotFound")
|
||||
}
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-uulCZ", "Errors.Internal")
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-PJURxRUoYG", "Errors.Internal")
|
||||
}
|
||||
return policy, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user