From dfed0dc03ae5466f13027e9058e98b21a4e75d7d Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Tue, 29 Sep 2020 14:01:12 +0800 Subject: [PATCH] Refine: geofile reading errors (#236) --- infra/conf/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/conf/router.go b/infra/conf/router.go index e25077855..10b51993f 100644 --- a/infra/conf/router.go +++ b/infra/conf/router.go @@ -162,7 +162,7 @@ func loadIP(filename, country string) ([]*router.CIDR, error) { } } - return nil, newError("country not found: " + country) + return nil, newError("country not found in ", filename, ": ", country) } func loadSite(filename, country string) ([]*router.Domain, error) { @@ -181,7 +181,7 @@ func loadSite(filename, country string) ([]*router.Domain, error) { } } - return nil, newError("country not found: " + country) + return nil, newError("list not found in ", filename, ": ", country) } type AttributeMatcher interface {