3
0

Add missing err handling for user credential fetch

This commit is contained in:
Tomaž Jerman
2023-04-14 09:04:32 +02:00
parent b6c24588a9
commit a23c43890e
+3
View File
@@ -38,6 +38,9 @@ func (svc *credentials) List(ctx context.Context, userID uint64) (cc types.Crede
err = func() error {
u, err = loadUser(ctx, svc.store, userID)
if err != nil {
return err
}
caProps.setUser(u)
// Allow users to manage their own credentials