The serverdecl.tmpl in protoc-gen-parigot has a problem with the error returns. When it calls a function like Open (at line 110 of FileServer.p.go at the moment) in the implementation it is expecting two return values, the returned value and a possible error. It should be expecting three return values, the two previous and a new one that is lib.Id.
The semantic errors of the go-side of the world are currently being converted into an “error” but should be returned separately so we can do better error reporting.
The
serverdecl.tmpl
inprotoc-gen-parigot
has a problem with the error returns. When it calls a function likeOpen
(at line 110 ofFileServer.p.go
at the moment) in the implementation it is expecting two return values, the returned value and a possible error. It should be expecting three return values, the two previous and a new one that islib.Id
.