Skip to content

Commit

Permalink
fix(jzero): fix gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Jul 2, 2024
1 parent e91c0ac commit 44619a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/gen/genrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ func (jr *JzeroRpc) Gen() error {
for _, v := range protoFilenames {
// parse proto
protoParser := rpcparser.NewDefaultProtoParser()
parse, err := protoParser.Parse(v, true)
var parse rpcparser.Proto
parse, err = protoParser.Parse(v, true)
if err != nil {
continue
if strings.Contains(err.Error(), "rpc service not found") {
continue
}
return err
}

allLogicFiles, err = jr.GetAllLogicFiles(parse)
Expand Down

0 comments on commit 44619a5

Please sign in to comment.