diff --git a/general/decode.go b/general/decode.go index 434c734..a957ac2 100644 --- a/general/decode.go +++ b/general/decode.go @@ -27,8 +27,10 @@ func generalReaderOf(ttype protocol.TType) func(iter spi.Iterator) interface{} { return readMap case protocol.TypeStruct: return readStruct + case protocol.TypeSet: + return readList default: - panic("unsupported type") + panic(fmt.Sprintf("unsupported type: %d", ttype)) } }