func parseArgs(funcName string, args ...interface{}) (string, error) {
	if len(args) != 1 {
		return "", errors.Errorf("invalid arguments to %s.%s -- "+
			"expected database path", dbType, funcName)
	}
	dbPath, ok := args[0].(string)
	if !ok {
		return "", errors.Errorf("first argument to %s.%s is invalid -- "+
			"expected database path string", dbType, funcName)
	}
	return dbPath, nil
}
parseArgs parses the arguments from the walletdb Open/Create methods.
package bdb
import (
	"fmt"
	"decred.org/dcrwallet/v2/errors"
	"decred.org/dcrwallet/v2/wallet/walletdb"
)
const (
	dbType = "bdb"
)