Skip to content

Commit

Permalink
Merge pull request #137 from m-pavel/errorhandling
Browse files Browse the repository at this point in the history
Do not swallow error cause
  • Loading branch information
paulmach authored Jan 8, 2024
2 parents 21adbef + f3aab3a commit 3ecd611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoding/mvt/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3ecd611

Please sign in to comment.