core: return error on root BoltDB bucket creation if so
This commit is contained in:
parent
03a1cf9f59
commit
cbdd45cc96
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,9 @@ func NewBoltDBStore(cfg dbconfig.BoltDBOptions) (*BoltDBStore, error) {
|
|||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to initialize BoltDB instance: %w", err)
|
||||
}
|
||||
|
||||
return &BoltDBStore{db: db}, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue