storagenode/storagenodedb: fix error message

Change-Id: Ibc98aa6539199f8dc8117f21a6ae645cea419403
This commit is contained in:
Egon Elbre 2021-11-10 19:33:02 +02:00
parent 58916d8ba9
commit 96058be1a7

View File

@ -300,7 +300,7 @@ func (db *DB) openExistingDatabase(ctx context.Context, dbName string) error {
db.log.Info("database does not exist", zap.String("database", dbName))
return nil
}
return ErrDatabase.New("%s database file %q does not exist: %w", dbName, path, err)
return ErrDatabase.New("%s couldn't be read (%q): %w", dbName, path, err)
}
return db.openDatabase(ctx, dbName)