0
0
Fork 0

better logging on index mapping corruption

This commit is contained in:
Marty Schoch 2016-03-11 16:36:43 -05:00
parent 22a54caf45
commit e76b1dd8f3
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ func openIndexUsing(path string, runtimeConfig map[string]interface{}) (rv *inde
var im IndexMapping
err = json.Unmarshal(mappingBytes, &im)
if err != nil {
return nil, err
return nil, fmt.Errorf("error parsing mapping JSON: %v\nmapping contents:\n%s", err, string(mappingBytes))
}
// mark the index as open