mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
fix: change error message from metadata query User.NotFound to Metada… (#6830)
fix: change error message from metadata query User.NotFound to Metadata.NotFound Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
parent
c8dc14ca9d
commit
f84eb19637
@@ -199,7 +199,7 @@ func prepareUserMetadataQuery(ctx context.Context, db prepareDatabase) (sq.Selec
|
||||
|
||||
if err != nil {
|
||||
if errs.Is(err, sql.ErrNoRows) {
|
||||
return nil, errors.ThrowNotFound(err, "QUERY-Rgh32", "Errors.User.NotFound")
|
||||
return nil, errors.ThrowNotFound(err, "QUERY-Rgh32", "Errors.Metadata.NotFound")
|
||||
}
|
||||
return nil, errors.ThrowInternal(err, "QUERY-Hhjt2", "Errors.Internal")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user