genbindings/go: add more detailed error message for unknown AST nodes

This commit is contained in:
mappu 2024-10-19 09:45:35 +13:00
parent 82ea3d3823
commit a78ba20f15

View File

@ -446,7 +446,7 @@ func (gfs *goFileState) emitCabiToGo(assignExpr string, rt CppParameter, rvalue
return assignExpr + "(" + rt.RenderTypeGo(gfs) + ")(" + rvalue + ")\n" return assignExpr + "(" + rt.RenderTypeGo(gfs) + ")(" + rvalue + ")\n"
} else { } else {
panic("what type is this?") panic(fmt.Sprintf("emitgo::emitCabiToGo missing type handler for parameter %+v", rt))
} }
} }