better error handling
This commit is contained in:
parent
e7a8a1fbe6
commit
1e04edf478
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user