Skip to content

Commit

Permalink
find suggestions only if no match
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-chiorean committed May 17, 2024
1 parent 5378fdc commit 7d3333d
Show file tree
Hide file tree
Showing 8 changed files with 790 additions and 991 deletions.
7 changes: 5 additions & 2 deletions backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,11 @@ func (s *Service) callWithRequest(

verbRef := schema.RefFromProto(req.Msg.Verb)
verb := &schema.Verb{}
err = sch.ResolveRefToType(verbRef, verb)
if err != nil {

if err = sch.ResolveRefToType(verbRef, verb); err != nil {
if errors.Is(err, schema.ErrNotFound) {
return nil, connect.NewError(connect.CodeNotFound, err)
}
return nil, err
}

Expand Down
Loading

0 comments on commit 7d3333d

Please sign in to comment.