Abort test on 235 as well as 109.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Search / Explain.pm
index ab2cef2..299ee69 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Explain.pm,v 1.4 2007-02-23 15:03:44 mike Exp $
+# $Id: Explain.pm,v 1.6 2007-03-05 12:15:11 mike Exp $
 
 # See the "Main" test package for documentation
 
@@ -56,6 +56,10 @@ sub error {
     $conn->log("irspy_test", "Explain category lookup failed: ", $exception);
     update($conn, $category, 0);
 
+    return ZOOM::IRSpy::Status::TEST_BAD
+       if ($exception->code() == 109 || # Database unavailable
+           $exception->code() == 235); # Database does not exist
+
     return ZOOM::IRSpy::Status::TASK_DONE;
 }