This commit is contained in:
Vladislav Kunetskiy
2026-11-05 02:09:39 +03:00
parent edc2a405ee
commit b53ecba3e6
132 changed files with 10121 additions and 119 deletions
@@ -23,7 +23,7 @@ func (r *SessionRepository) Credentials(ctx context.Context, username string) (d
row, err := r.store.queries.GetUserByUsername(ctx, username)
if err != nil {
if errors.Is(err, pgx.ErrNoRows) {
return domain.UserCredentials{}, fmt.Errorf("%w: username %q", domain.ErrUnauthenticated, username)
return domain.UserCredentials{}, fmt.Errorf("%w", domain.ErrUnauthenticated)
}
return domain.UserCredentials{}, fmt.Errorf("load credentials: %w", mapError(err))