Browse Source

Refine: geofile reading errors (#236)

Loyalsoldier 5 years ago
parent
commit
dfed0dc03a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      infra/conf/router.go

+ 2 - 2
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) {
 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 {
 type AttributeMatcher interface {