From a9158bf13e296213be3503ebfa2fda2f373cf3a6 Mon Sep 17 00:00:00 2001 From: Bertil Chapuis Date: Mon, 18 Sep 2023 21:20:19 +0200 Subject: [PATCH] Print exception --- .../src/main/java/org/apache/baremaps/cli/map/Dev.java | 4 +++- .../java/org/apache/baremaps/vectortile/tileset/Tileset.java | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Dev.java b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Dev.java index 82aa6b77a..14c21fd0e 100644 --- a/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Dev.java +++ b/baremaps-cli/src/main/java/org/apache/baremaps/cli/map/Dev.java @@ -74,10 +74,12 @@ public Integer call() throws Exception { var tileStoreType = new TypeLiteral>() {}; var tileStoreSupplier = (Supplier) () -> { try { + var config = configReader.read(this.tilesetPath); var tilesetObject = - objectMapper.readValue(configReader.read(this.tilesetPath), Tileset.class); + objectMapper.readValue(config, Tileset.class); return new PostgresTileStore(datasource, tilesetObject); } catch (IOException e) { + e.printStackTrace(); throw new RuntimeException(e); } }; diff --git a/baremaps-core/src/main/java/org/apache/baremaps/vectortile/tileset/Tileset.java b/baremaps-core/src/main/java/org/apache/baremaps/vectortile/tileset/Tileset.java index 14822c7df..6f180d919 100644 --- a/baremaps-core/src/main/java/org/apache/baremaps/vectortile/tileset/Tileset.java +++ b/baremaps-core/src/main/java/org/apache/baremaps/vectortile/tileset/Tileset.java @@ -71,7 +71,6 @@ public class Tileset { @JsonProperty("center") private List center = new ArrayList<>(); - @Deprecated @JsonProperty("database") private Object database;