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

+1-2
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)