From ad68ca97b357af674563d96599658013824a62ab Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 14 Nov 2007 16:44:27 +0000 Subject: [PATCH] * Do not let 404 errors increase app.errorCount, even if no notfound action is defined. --- src/helma/framework/core/RequestEvaluator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 68a203b8..932fa3ea 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -580,7 +580,9 @@ public final class RequestEvaluator implements Runnable { // check if we tried to process the error already, // or if this is an XML-RPC request if (error == null) { - app.errorCount += 1; + if (!(x instanceof FrameworkException)) { + app.errorCount += 1; + } // set done to false so that the error will be processed done = false;