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:
Charlie Groves
2008-04-22 20:42:54 +00:00
parent 0b5b4f41e5
commit c44a63c3f4
@@ -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 + "]");