Let us not go softly into unexplained resource failure
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@474 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -59,6 +59,7 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
try {
|
||||
ucon = (HttpURLConnection) resourceUrl.openConnection();
|
||||
} catch (IOException ioe) {
|
||||
Log.warning("Unable to open connection [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
}
|
||||
|
||||
if (ucon == null) {
|
||||
@@ -68,6 +69,7 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
ucon.connect();
|
||||
return ucon.getInputStream();
|
||||
} catch (IOException ioe) {
|
||||
Log.warning("Unable to open input stream [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
return null;
|
||||
} catch (AccessControlException ace) {
|
||||
Log.warning("Unable to connect due to access permissions [url=" + resourceUrl + "]");
|
||||
|
||||
Reference in New Issue
Block a user