mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:57: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:
@@ -198,9 +198,9 @@ func preparePasswordComplexityPolicyQuery(ctx context.Context, db prepareDatabas
|
||||
)
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-63mtI", "Errors.PasswordComplexity.NotFound")
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-hgA9vuM0qg", "Errors.IAM.PasswordComplexityPolicy.NotFound")
|
||||
}
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-uulCZ", "Errors.Internal")
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-TvvW9Uij7M", "Errors.Internal")
|
||||
}
|
||||
return policy, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user