Merge branch '1.5.x'

This commit is contained in:
Andy Wilkinson
2018-04-03 16:01:29 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -159,9 +159,11 @@ public class JettyWebServer implements WebServer {
+ " with context path '" + getContextPath() + "'");
}
catch (WebServerException ex) {
stopSilently();
throw ex;
}
catch (Exception ex) {
stopSilently();
throw new WebServerException("Unable to start embedded Jetty server", ex);
}
}

View File

@@ -122,6 +122,7 @@ public class TomcatWebServer implements WebServer {
startDaemonAwaitThread();
}
catch (Exception ex) {
stopSilently();
throw new WebServerException("Unable to start embedded Tomcat", ex);
}
}