Skip to content

Commit 8195b93

Browse files
committed
remove sql no rows
1 parent eafee6b commit 8195b93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tailnet/tunnel.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package tailnet
22

33
import (
44
"context"
5-
"database/sql"
65
"net/netip"
76

87
"github.com/google/uuid"
@@ -105,7 +104,7 @@ func (a ClientUserCoordinateeAuth) Authorize(ctx context.Context, req *proto.Coo
105104
}
106105
err = a.RBACAuth.AuthorizeByID(ctx, uid)
107106
if err != nil {
108-
return xerrors.Errorf("workspace agent not found or you do not have permission: %w", sql.ErrNoRows)
107+
return xerrors.Errorf("workspace agent not found or you do not have permission")
109108
}
110109
}
111110

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy