diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java index d16e5ff7e94afe..1c02a9f92c32cc 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ApplicationLifecycleManager.java @@ -24,11 +24,8 @@ import io.quarkus.bootstrap.logging.InitialConfigurator; import io.quarkus.bootstrap.runner.RunnerClassLoader; -import io.quarkus.runtime.configuration.ConfigurationException; import io.quarkus.runtime.graal.DiagnosticPrinter; import io.quarkus.runtime.util.ExceptionUtil; -import io.quarkus.runtime.util.StringUtil; -import io.smallrye.config.ConfigValidationException; import sun.misc.Signal; import sun.misc.SignalHandler; @@ -188,11 +185,9 @@ public static void run(Application application, Class'."); } - } else if (rootCause instanceof ConfigurationException || rootCause instanceof ConfigValidationException) { - System.err.println(rootCause.getMessage()); - } else if (rootCause instanceof PreventFurtherStepsException - && !StringUtil.isNullOrEmpty(rootCause.getMessage())) { - System.err.println(rootCause.getMessage()); + } else if (!currentApplication.isStarted()) { + System.err.println("Failed to start application"); + e.printStackTrace(); } else { applicationLogger.errorv(e, "Failed to start application"); ensureConsoleLogsDrained();