Skip to content

Commit 300066c

Browse files
committed
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.
1 parent 3198fed commit 300066c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/gretty/src/main/groovy/org/akhikhl/gretty/ServletContainerConfig.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ServletContainerConfig {
120120
servletContainer = servletContainer ?: 'jetty11'
121121
def result = configs[servletContainer.toString()]
122122
if(!result)
123-
throw new Exception("Unsupported servlet container: $servletContainer")
123+
throw new Exception("Unsupported servlet container: $servletContainer. Only ${configs.keySet()} are supported")
124124
result
125125
}
126126

0 commit comments

Comments
 (0)