more logging for strange network loading bug

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7438 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 4e29e9712a
commit f1f03d8c90

@ -576,7 +576,7 @@ public class serverSwitch {
* @param file file to use when remote fetching fails (null if unused)
*/
public Reader getConfigFileFromWebOrLocally(String uri, String rootPath, File file) throws IOException, FileNotFoundException {
if(uri.startsWith("http://") || uri.startsWith("https://")) {
if (uri.startsWith("http://") || uri.startsWith("https://")) {
String[] uris = uri.split(",");
for (String netdef: uris) {
netdef = netdef.trim();
@ -608,7 +608,7 @@ public class serverSwitch {
if (f.exists()) {
return new FileReader(f);
} else {
throw new FileNotFoundException();
throw new FileNotFoundException(f.toString());
}
}
}

Loading…
Cancel
Save