diff --git a/generate/generate.go b/generate/generate.go index 72f3822..cf60739 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -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")