From 300066c11ff2de2571dd8c13892d6385adf29fc2 Mon Sep 17 00:00:00 2001 From: ljcyu Date: Tue, 30 Jul 2024 16:41:11 +0800 Subject: [PATCH] provide a clear list of supported containers When displaying "Unsupported servlet container," provide a clear list of supported containers to help users troubleshoot the issue. --- .../groovy/org/akhikhl/gretty/ServletContainerConfig.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gretty/src/main/groovy/org/akhikhl/gretty/ServletContainerConfig.groovy b/libs/gretty/src/main/groovy/org/akhikhl/gretty/ServletContainerConfig.groovy index 7a8d6890..2dce5fc1 100644 --- a/libs/gretty/src/main/groovy/org/akhikhl/gretty/ServletContainerConfig.groovy +++ b/libs/gretty/src/main/groovy/org/akhikhl/gretty/ServletContainerConfig.groovy @@ -120,7 +120,7 @@ class ServletContainerConfig { servletContainer = servletContainer ?: 'jetty11' def result = configs[servletContainer.toString()] if(!result) - throw new Exception("Unsupported servlet container: $servletContainer") + throw new Exception("Unsupported servlet container: $servletContainer. Only ${configs.keySet()} are supported") result }