From f3aab3a955f8b60fd594733064c7a75a239df8d0 Mon Sep 17 00:00:00 2001 From: pavel m Date: Wed, 4 Oct 2023 15:45:28 +0200 Subject: [PATCH] do not swallow error cause --- encoding/mvt/marshal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoding/mvt/marshal.go b/encoding/mvt/marshal.go index b1bdaed..7cabef6 100644 --- a/encoding/mvt/marshal.go +++ b/encoding/mvt/marshal.go @@ -87,12 +87,12 @@ func addSingleGeometryFeature(layer *vectortile.Tile_Layer, kve *keyValueEncoder return err } if err != nil { - return fmt.Errorf("error encoding geometry: %v", g) + return fmt.Errorf("error encoding geometry: %v : %s", g, err.Error()) } tags, err := encodeProperties(kve, p) if err != nil { - return fmt.Errorf("error encoding geometry: %v", g) + return fmt.Errorf("error encoding geometry: %v : %s", g, err.Error()) } layer.Features = append(layer.Features, &vectortile.Tile_Feature{