Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
better error message in case that a mime type cannot be found. see also http://forum.yacy-websuche.de/viewtopic.php?f=6&t=132&p=587#p587
orbiter6071668c3bcd
diff --git a/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java b/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.javaindex 70b01f471..4ed386f9d 100644--- a/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java+++ b/source/de/anomic/plasma/parser/mimeType/mimeTypeParser.java@@ -159,8 +159,8 @@ implements Parser {}// to avoid loops we have to test if the mimetype has changed ...- if (this.getSupportedMimeTypes().containsKey(mimeType)) throw new ParserException("Unable to detect mimetype of resource.",location);- if (orgMimeType.equals(mimeType)) throw new ParserException("Unable to detect mimetype of resource.",location);+ if (this.getSupportedMimeTypes().containsKey(mimeType)) throw new ParserException("Unable to detect mimetype of resource (1).",location);+ if (orgMimeType.equals(mimeType)) throw new ParserException("Unable to detect mimetype of resource (2).",location);// check for interruptioncheckInterruption();@@ -169,9 +169,9 @@ implements Parser {plasmaParser theParser = new plasmaParser();return theParser.parseSource(location,mimeType,charset,sourceFile);}- throw new ParserException("Unable to detect mimetype of resource.",location);+ throw new ParserException("Unable to detect mimetype of resource (3).",location);} catch (MagicMatchNotFoundException e) {- throw new ParserException("Unable to detect mimetype of resource.",location);+ throw new ParserException("Unable to detect mimetype of resource (4).",location);} catch (Exception e) {if (e instanceof InterruptedException) throw (InterruptedException) e;if (e instanceof ParserException) throw (ParserException) e;