Log on db failure

This commit is contained in:
Andrea Maria Piana 2020-10-13 14:32:47 +02:00
parent 76a37c1b7f
commit 1a7a63a8e5
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
0.62.9
0.62.10

View File

@ -156,6 +156,7 @@ func (b *GethStatusBackend) OpenAccounts() error {
}
db, err := multiaccounts.InitializeDB(filepath.Join(b.rootDataDir, "accounts.sql"))
if err != nil {
b.log.Error("failed to initialize accounts db", "err", err)
return err
}
b.multiaccountsDB = db
@ -240,6 +241,7 @@ func (b *GethStatusBackend) ensureAppDBOpened(account multiaccounts.Account, pas
b.appDB, err = appdatabase.InitializeDB(newPath, password)
if err != nil {
b.log.Error("failed to initialize db", "err", err)
return err
}
return nil