Fixing system dependent newline in NPN check logging.

This commit is contained in:
Daniel Bevenius 2014-03-01 16:26:39 +01:00
parent ad83a079cd
commit 3e11c0c39e

View File

@ -86,10 +86,12 @@ public class SpdyServer {
try { try {
Class.forName("sun.security.ssl.NextProtoNegoExtension"); Class.forName("sun.security.ssl.NextProtoNegoExtension");
} catch (ClassNotFoundException ignored) { } catch (ClassNotFoundException ignored) {
System.err.println("\nCould not locate Next Protocol Negotiation (NPN) implementation."); System.err.println();
System.err.println("Could not locate Next Protocol Negotiation (NPN) implementation.");
System.err.println("The NPN jar should have been made available when building the examples with maven."); System.err.println("The NPN jar should have been made available when building the examples with maven.");
System.err.println("Please check that your JDK is among those supported by Jetty-NPN:"); System.err.println("Please check that your JDK is among those supported by Jetty-NPN:");
System.err.println("http://wiki.eclipse.org/Jetty/Feature/NPN#Versions\n"); System.err.println("http://wiki.eclipse.org/Jetty/Feature/NPN#Versions");
System.err.println();
throw new IllegalStateException("Could not locate NPN implementation. See console err for details."); throw new IllegalStateException("Could not locate NPN implementation. See console err for details.");
} }
} }