Index: trunk/ippToPsps/perl/getSmfForThisBatch.pl
===================================================================
--- trunk/ippToPsps/perl/getSmfForThisBatch.pl	(revision 29229)
+++ trunk/ippToPsps/perl/getSmfForThisBatch.pl	(revision 29233)
@@ -10,10 +10,10 @@
 
 my $camera = undef;
-my $singleBatch = undef;
+my $batch = undef;
 my $verbose = undef;
 my $save_temps = undef;
 
 GetOptions(
-        'batch|b=s' => \$singleBatch,
+        'batch|b=s' => \$batch,
         'verbose|v' => \$verbose,
         'save_temps|t' => \$save_temps,
@@ -28,5 +28,5 @@
     print "* UNKNKOWN: option                          @ARGV\n";
 }
-if (!defined $singleBatch) {
+if (!defined $batch) {
     $quit=1;
     print "* REQUIRED: need to provide a batch   -b <batch>\n";
@@ -55,5 +55,5 @@
         $camera,
         $gpc1Db,
-        $singleBatch, 
+        $batch, 
         $ippToPspsDb, 
         "./",
@@ -61,5 +61,9 @@
         $save_temps);
 
-
-print $detectionBatch->getSmfFile() . "\n";
-
+my $smf = $detectionBatch->getSmfFile();
+if (defined $smf) {
+    print "$smf\n";
+}
+else {
+    print "* Could not find an smf file for batch $batch\n";
+}
