···101 // Construct repository path using the same logic as didPath
102 didRepoPath, err := securejoin.SecureJoin(did, repoName)
103 if err != nil {
104- return "", xrpcerr.NewXrpcError(
105- xrpcerr.WithTag("RepoNotFound"),
106- xrpcerr.WithMessage("failed to access repository"),
107- )
108 }
109110 repoPath, err := securejoin.SecureJoin(x.Config.Repo.ScanPath, didRepoPath)
111 if err != nil {
112- return "", xrpcerr.NewXrpcError(
113- xrpcerr.WithTag("RepoNotFound"),
114- xrpcerr.WithMessage("failed to access repository"),
115- )
116 }
117118 return repoPath, nil
···101 // Construct repository path using the same logic as didPath
102 didRepoPath, err := securejoin.SecureJoin(did, repoName)
103 if err != nil {
104+ return "", xrpcerr.RepoNotFoundError
000105 }
106107 repoPath, err := securejoin.SecureJoin(x.Config.Repo.ScanPath, didRepoPath)
108 if err != nil {
109+ return "", xrpcerr.RepoNotFoundError
000110 }
111112 return repoPath, nil
+5
xrpc/errors/errors.go
···56 WithMessage("owner not set for this service"),
57)
580000059var AuthError = func(err error) XrpcError {
60 return NewXrpcError(
61 WithTag("Auth"),
···56 WithMessage("owner not set for this service"),
57)
5859+var RepoNotFoundError = NewXrpcError(
60+ WithTag("RepoNotFound"),
61+ WithMessage("failed to access repository"),
62+)
63+64var AuthError = func(err error) XrpcError {
65 return NewXrpcError(
66 WithTag("Auth"),