mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
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