Merge pull request #296 from kortschak/bolt-panic
graph/bolt: don't panic on unitialised store
This commit is contained in:
commit
42aa91b77f
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ func newQuadStore(path string, options graph.Options) (graph.QuadStore, error) {
|
|||
}
|
||||
err = qs.getMetadata()
|
||||
if err == errNoBucket {
|
||||
panic("bolt: quadstore has not been initialised")
|
||||
return nil, errors.New("bolt: quadstore has not been initialised")
|
||||
} else if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue