From 777e7de2b04e4320db4932727a108fed52283647 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 26 Nov 2008 13:43:04 -0500 Subject: Error code changes, more tests for yum code. --- scripts/services.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/services.py b/scripts/services.py index 4b77b2da..5d5c16f3 100755 --- a/scripts/services.py +++ b/scripts/services.py @@ -91,11 +91,14 @@ def handler(req): if content.find("# *** ERROR ***") != -1: req.write(content) + apache.log_error("possible cheetah template error") return apache.HTTP_ERROR - elif content.find("# profile not found") != -1 or content.find("# system not found") != -1: + elif content.find("# profile not found") != -1 or content.find("# system not found") != -1 or content.find("# object not found") != -1: req.content_type = "text/html;charset=utf-8" + req.write(" ") + apache.log_error("content not found") return apache.HTTP_NOT_FOUND else: req.write(content) - return apache.HTTP_OK + return apache.OK -- cgit