From 96174b2b56b3abae3a25eccb15e12287bb161f85 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 13 Nov 2008 23:41:43 +0000 Subject: [PATCH] more debugging / better result status logging for parser/caching errors git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5341 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaParser.java | 4 ++-- source/de/anomic/plasma/plasmaSwitchboard.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/de/anomic/plasma/plasmaParser.java b/source/de/anomic/plasma/plasmaParser.java index e63986f41..02fb21638 100644 --- a/source/de/anomic/plasma/plasmaParser.java +++ b/source/de/anomic/plasma/plasmaParser.java @@ -544,9 +544,9 @@ public final class plasmaParser { // testing if the resource is not empty if (sourceArray == null || sourceArray.length == 0) { - final String errorMsg = "No resource content available (1)."; + final String errorMsg = "No resource content available (1) " + ((sourceArray == null) ? "source == null" : "source.length() == 0"); this.theLogger.logInfo("Unable to parse '" + location + "'. " + errorMsg); - throw new ParserException(errorMsg,location, "document has no content"); + throw new ParserException(errorMsg,location, errorMsg); } // creating an InputStream diff --git a/source/de/anomic/plasma/plasmaSwitchboard.java b/source/de/anomic/plasma/plasmaSwitchboard.java index 5cf3ca03f..e5ae12e4d 100644 --- a/source/de/anomic/plasma/plasmaSwitchboard.java +++ b/source/de/anomic/plasma/plasmaSwitchboard.java @@ -1037,7 +1037,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch