Index: trunk/Mars/fact/processing/numevents.C
===================================================================
--- trunk/Mars/fact/processing/numevents.C	(revision 15527)
+++ trunk/Mars/fact/processing/numevents.C	(revision 15528)
@@ -34,5 +34,8 @@
     TSQLResult *res = serv.Query(query);
     if (!res)
-        return 0;
+    {
+        cout << "ERROR - no result from query " << query << endl;
+        return 2;
+    }
 
     //allocate variables to use in the loop
@@ -236,4 +239,4 @@
 
 
-    return 0;
+    return 1;
 }
