Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

more logging for strange network loading bug

orbiterf1f03d8c9084
diff --git a/source/de/anomic/server/serverSwitch.java b/source/de/anomic/server/serverSwitch.java
index ed216ccbc..2117f4ec5 100644
--- a/source/de/anomic/server/serverSwitch.java
+++ b/source/de/anomic/server/serverSwitch.java
@@ -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());
}
}
}