Index: /trunk/ippToPsps/src/ippToPsps.c
===================================================================
--- /trunk/ippToPsps/src/ippToPsps.c	(revision 29197)
+++ /trunk/ippToPsps/src/ippToPsps.c	(revision 29198)
@@ -210,4 +210,14 @@
 // Runs the requested process
 static int ippToPsps_run(IppToPsps *this) {
+
+    // any files?
+    if (this->batchType == BATCH_DETECTION ||
+            this->batchType == BATCH_STACK ||
+            this->batchType == BATCH_DIFFERENCE ) {
+    
+        if (this->numOfInputFiles < 1) this->exitCode = PS_EXIT_DATA_ERROR;
+        psError(PS_ERR_UNKNOWN, false, "No input files for this batch");
+
+    }
 
     if(this->exitCode == PS_EXIT_SUCCESS) {
Index: /trunk/ippToPsps/src/ippToPspsBatchDetection.c
===================================================================
--- /trunk/ippToPsps/src/ippToPspsBatchDetection.c	(revision 29197)
+++ /trunk/ippToPsps/src/ippToPspsBatchDetection.c	(revision 29198)
@@ -34,6 +34,4 @@
   */
 int ippToPsps_batchDetection(IppToPsps *this) {
-
-    if (this->numOfInputFiles < 1) return PS_EXIT_DATA_ERROR;
 
     int status = 0;
