Better getRootJar exception capturing

pull/276/merge
Phillip Webb 11 years ago
parent a624245b78
commit 0afdb71345

@ -19,7 +19,6 @@ package org.springframework.boot.loader.jar;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL; import java.net.URL;
import java.net.URLConnection; import java.net.URLConnection;
import java.net.URLStreamHandler; import java.net.URLStreamHandler;
@ -77,7 +76,7 @@ public class Handler extends URLStreamHandler {
try { try {
return new JarFile(new File(new URL(name).toURI())); return new JarFile(new File(new URL(name).toURI()));
} }
catch (URISyntaxException ex) { catch (Exception ex) {
throw new IOException("Unable to open root Jar file '" + name + "'", ex); throw new IOException("Unable to open root Jar file '" + name + "'", ex);
} }
} }

Loading…
Cancel
Save