Exit if no config is found
@@ -38,7 +38,7 @@ public class Launcher {
}
Config config = cliResult.getConfig()
- .orElseThrow(() -> new NoSuchElementException("No Config found. "));
+ .orElseThrow(() -> new NoSuchElementException("No Config found. Tessera will not run"));
final URI uri = new URI(config.getServerConfig().getHostName() + ":" + config.getServerConfig().getPort());
@@ -54,6 +54,9 @@ public class Launcher {
}
System.exit(1);
}
+ catch(NoSuchElementException ex) {
+ System.exit(1);
+ }
}
private static void runWebServer(final URI serverUri, ServerConfig serverConfig) throws Exception {
