generate: Wrong error

This commit is contained in:
Sasha Koshka 2025-01-21 16:37:50 -05:00
parent fe5f2448a1
commit f49c977052

View File

@ -221,7 +221,7 @@ func (this *Protocol) unmarshalMessage(out io.Writer, message Message) error {
fmt.Fprintf(out, "\t}\n")
if requiredTotal > 0 {
fmt.Fprintf(out,
"\tif foundRequired != %d { return hopp.ErrPairMissing }\n",
"\tif foundRequired != %d { return hopp.ErrTablePairMissing }\n",
requiredTotal)
}
fmt.Fprintf(out, "\treturn nil\n")