Log the failing URL when the security manager denies access
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@472 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -21,14 +21,13 @@
|
||||
|
||||
package com.threerings.resource;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.security.AccessControlException;
|
||||
|
||||
/**
|
||||
* Resource bundle that retrieves its contents via HTTP over the network from a root URL.
|
||||
@@ -70,6 +69,9 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
return ucon.getInputStream();
|
||||
} catch (IOException ioe) {
|
||||
return null;
|
||||
} catch (AccessControlException ace) {
|
||||
Log.warning("Unable to connect due to access permissions [url=" + resourceUrl + "]");
|
||||
throw ace;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user