mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +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 <livio.a@gmail.com>
This commit is contained in:
parent
c8dc14ca9d
commit
f84eb19637
@ -199,7 +199,7 @@ func prepareUserMetadataQuery(ctx context.Context, db prepareDatabase) (sq.Selec
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errs.Is(err, sql.ErrNoRows) {
|
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")
|
return nil, errors.ThrowInternal(err, "QUERY-Hhjt2", "Errors.Internal")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user