Better getRootJar exception capturing

This commit is contained in:
Phillip Webb 2014-01-27 19:59:57 -08:00
parent a624245b78
commit 0afdb71345
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package org.springframework.boot.loader.jar;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
@ -77,7 +76,7 @@ public class Handler extends URLStreamHandler {
try {
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);
}
}