Skip to content

Commit 2fbec4b

Browse files
committed
remove sql no rows
1 parent 638af4b commit 2fbec4b

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)