// providerFactoryError is a stub providers.Factory that returns an error
// when called. It's used to allow providerFactories to still produce a
// factory for each available provider in an error case, for situations
// where the caller can do something useful with that partial result.
providerFactoryError is a stub providers.Factory that returns an error
when called. It's used to allow providerFactories to still produce a
factory for each available provider in an error case, for situations
where the caller can do something useful with that partial result.
// providerFactoryError is a stub providers . Factory that returns an error // when called . It ' s used to allow providerFactories to still produce a // factory for each available provider in an error case for situations // where the caller can do something useful with that partial result .
func providerFactoryError(err error) providers.Factory {
	return func() (providers.Interface, error) {
		return nil, err
	}
}
func providerFactoryError ( err error ) providers . Factory { return func ( ) ( providers . Interface , error ) { return nil , err } }
providerFactoryError is a stub providers.Factory that returns an error
when called.
providerFactoryError is a stub providers . Factory that returns an error when called .