mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
Log on db failure
This commit is contained in:
parent
76a37c1b7f
commit
1a7a63a8e5
@ -156,6 +156,7 @@ func (b *GethStatusBackend) OpenAccounts() error {
|
|||||||
}
|
}
|
||||||
db, err := multiaccounts.InitializeDB(filepath.Join(b.rootDataDir, "accounts.sql"))
|
db, err := multiaccounts.InitializeDB(filepath.Join(b.rootDataDir, "accounts.sql"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
b.log.Error("failed to initialize accounts db", "err", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
b.multiaccountsDB = db
|
b.multiaccountsDB = db
|
||||||
@ -240,6 +241,7 @@ func (b *GethStatusBackend) ensureAppDBOpened(account multiaccounts.Account, pas
|
|||||||
|
|
||||||
b.appDB, err = appdatabase.InitializeDB(newPath, password)
|
b.appDB, err = appdatabase.InitializeDB(newPath, password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
b.log.Error("failed to initialize db", "err", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user