diff --git a/api/metadata.go b/api/metadata.go index c9aee98..3c9de8a 100644 --- a/api/metadata.go +++ b/api/metadata.go @@ -16,7 +16,7 @@ import ( var ( geoCodeOverride = "ltla" // Fran 20220831 validGeo = []string{"ctry", "lsoa", "ltla", "msoa", "nat", "oa", "rgn", "utla"} // allowlist of codes - errNotOneGeocode = errors.New("exactly one geocode not found") + errNotOneGeocode = errors.New("invalid data - expected exactly one geocode") ) // getMetadata is the main entry point