fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Propagate IndexBuilder.Add error

Change-Id: I22d2f91cd8a0e919a446f7733149fa36c056f3e7

+5 -3
+5 -3
build/builder.go
··· 197 197 return b, nil 198 198 } 199 199 200 - func (b *Builder) AddFile(name string, content []byte) { 201 - b.Add(zoekt.Document{Name: name, Content: content}) 200 + func (b *Builder) AddFile(name string, content []byte) error { 201 + return b.Add(zoekt.Document{Name: name, Content: content}) 202 202 } 203 203 204 204 func (b *Builder) Add(doc zoekt.Document) error { ··· 351 351 } 352 352 353 353 for _, t := range todo { 354 - shardBuilder.Add(*t) 354 + if err := shardBuilder.Add(*t); err != nil { 355 + return nil, err 356 + } 355 357 } 356 358 357 359 return b.writeShard(name, shardBuilder)