Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit fee9116

Browse files
chore: Fix inaccurate error message (#63361)
There could be various causes for the failure, so delegate the error formatting to the inner error.
1 parent 4984274 commit fee9116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/codeintel/codenav/transport/graphql/root_resolver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,13 +395,13 @@ func newCodeGraphDataResolverFromID(
395395
if err := relay.UnmarshalSpec(rawID, &id); err != nil {
396396
return nil, errors.Wrap(err, "malformed ID")
397397
}
398-
repos, err := repoStore.GetByIDs(ctx, id.RepoID)
398+
repo, err := repoStore.Get(ctx, id.RepoID)
399399
if err != nil {
400-
return nil, errors.Wrap(err, "repo for CodeGraphData value no longer exists")
400+
return nil, err
401401
}
402402
opts := resolverstubs.CodeGraphDataOpts{
403403
Args: id.Args,
404-
Repo: repos[0],
404+
Repo: repo,
405405
Commit: id.Commit,
406406
Path: id.Path,
407407
}

0 commit comments

Comments
 (0)