From 139c059411914bc074fcd16ce76bef413fd33e26 Mon Sep 17 00:00:00 2001 From: Richard Kettelerij Date: Mon, 9 Sep 2024 10:06:08 +0200 Subject: [PATCH] fix(tiles): Add more debug info --- config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index f440384e..1bb989b5 100644 --- a/config/config.go +++ b/config/config.go @@ -107,7 +107,8 @@ func validate(config *Config) error { if config.OgcAPI.Tiles != nil && len(config.OgcAPI.Tiles.Collections) > 0 { for _, coll := range config.OgcAPI.Tiles.Collections { if coll.Tiles == nil { - return errors.New("invalid tiles config provided: no tileserver(s) configured for collection-level tiles") + return fmt.Errorf("invalid tiles config provided: no tileserver(s) "+ + "configured for collection-level tiles. Collection: %s", coll.ID) } } }