core: return error on root BoltDB bucket creation if so

This commit is contained in:
Anna Shaleva 2022-10-05 08:13:12 +03:00
parent 03a1cf9f59
commit cbdd45cc96

View file

@ -39,6 +39,9 @@ func NewBoltDBStore(cfg dbconfig.BoltDBOptions) (*BoltDBStore, error) {
} }
return nil return nil
}) })
if err != nil {
return nil, fmt.Errorf("failed to initialize BoltDB instance: %w", err)
}
return &BoltDBStore{db: db}, nil return &BoltDBStore{db: db}, nil
} }