mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:57:31 +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:
@@ -176,9 +176,9 @@ func preparePasswordAgePolicyQuery(ctx context.Context, db prepareDatabase) (sq.
|
||||
)
|
||||
if err != nil {
|
||||
if errors.Is(err, sql.ErrNoRows) {
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-63mtI", "Errors.Org.PasswordComplexity.NotFound")
|
||||
return nil, zerrors.ThrowNotFound(err, "QUERY-ShCWRnWJfH", "Errors.IAM.PasswordAgePolicy.NotFound")
|
||||
}
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-uulCZ", "Errors.Internal")
|
||||
return nil, zerrors.ThrowInternal(err, "QUERY-6nj7Bm4fxT", "Errors.Internal")
|
||||
}
|
||||
return policy, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user