mirror of
https://github.com/btcsuite/btcd.git
synced 2025-02-21 22:11:56 +01:00
btcd.go: Handle returned error for removing regression database
This commit is contained in:
parent
ed77733ec0
commit
4cc58892b7
1 changed files with 4 additions and 1 deletions
5
btcd.go
5
btcd.go
|
@ -268,7 +268,10 @@ func loadBlockDB() (database.DB, error) {
|
|||
|
||||
// The regression test is special in that it needs a clean database for
|
||||
// each run, so remove it now if it already exists.
|
||||
removeRegressionDB(dbPath)
|
||||
err := removeRegressionDB(dbPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
btcdLog.Infof("Loading block database from '%s'", dbPath)
|
||||
db, err := database.Open(cfg.DbType, dbPath, activeNetParams.Net)
|
||||
|
|
Loading…
Add table
Reference in a new issue