diff --git a/server/pom.xml b/server/pom.xml index df8c54b55..dd2252469 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -13,13 +13,13 @@ - 4.1.107.Final - 1.5.3 - 4.5.4 + 4.1.112.Final + 1.5.7 + 4.5.9 5.10.3 3.26.3 5.12.0 - 2.0.12 + 2.0.16 11 11 20240325.1 @@ -105,7 +105,7 @@ org.apache.commons commons-text - 1.11.0 + 1.12.0 com.structurizr diff --git a/server/src/main/java/io/kroki/server/Server.java b/server/src/main/java/io/kroki/server/Server.java index 95761d6a7..576f17b6f 100644 --- a/server/src/main/java/io/kroki/server/Server.java +++ b/server/src/main/java/io/kroki/server/Server.java @@ -45,13 +45,17 @@ public void start(Promise startPromise) { if (configResult.failed()) { startPromise.fail(configResult.cause()); } else { - start(vertx, vertxOptions, configResult.result(), startResult -> { - if (startResult.succeeded()) { - startPromise.complete(); - } else { - startPromise.fail(startResult.cause()); - } - }); + try { + start(vertx, vertxOptions, configResult.result(), startResult -> { + if (startResult.succeeded()) { + startPromise.complete(); + } else { + startPromise.fail(startResult.cause()); + } + }); + } catch (Exception e) { + startPromise.fail(e); + } } }); }