This commit is contained in:
Vladislav Kunetskiy
2026-11-05 20:33:31 +03:00
parent edc2a405ee
commit b303db2d62
194 changed files with 10047 additions and 3831 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))