From 3c247354b9f280a00a283206505b8e961c3b4af9 Mon Sep 17 00:00:00 2001 From: Steve Mynott Date: Tue, 25 Oct 2022 14:13:53 +0100 Subject: [PATCH] better error message --- api/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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