0
0
Fork 0

return err not panic

This commit is contained in:
Marty Schoch 2017-12-14 17:41:02 -05:00
parent 6ab27e4afa
commit b5aa4ed22b
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ func (s *Segment) VisitDocument(num uint64, visitor segment.DocumentFieldValueVi
meta, compressed := s.getStoredMetaAndCompressed(num)
uncompressed, err := snappy.Decode(nil, compressed)
if err != nil {
panic(err)
return err
}
// now decode meta and process
reader := bytes.NewReader(meta)