0
0

better error handling

This commit is contained in:
Marty Schoch 2014-08-25 15:08:23 -04:00
parent e7a8a1fbe6
commit 1e04edf478

View File

@ -39,6 +39,9 @@ func main() {
// create a mapping
indexMapping := buildIndexMapping()
beerIndex, err = bleve.New(*indexPath, indexMapping)
if err != nil {
log.Fatal(err)
}
// index data in the background
go func() {