From 3e7970612af997719ed7e6aca2cd37b9df5c7961 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Mon, 1 Jun 2020 00:39:41 +0800 Subject: [PATCH] Chore: provider error adjust --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index c110d257..47373429 100644 --- a/config/config.go +++ b/config/config.go @@ -312,7 +312,7 @@ func parseProxies(cfg *RawConfig) (proxies map[string]C.Proxy, providersMap map[ pd, err := provider.ParseProxyProvider(name, mapping) if err != nil { - return nil, nil, err + return nil, nil, fmt.Errorf("parse proxy provider %s error: %w", name, err) } providersMap[name] = pd @@ -321,7 +321,7 @@ func parseProxies(cfg *RawConfig) (proxies map[string]C.Proxy, providersMap map[ for _, provider := range providersMap { log.Infoln("Start initial provider %s", provider.Name()) if err := provider.Initial(); err != nil { - return nil, nil, err + return nil, nil, fmt.Errorf("initial proxy provider %s error: %w", provider.Name(), err) } }