break in case of wrong find command
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2011 13:59:28 +0000 (13:59 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Jul 2011 13:59:28 +0000 (13:59 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 796bd7c..9973a92 100644 (file)
@@ -860,7 +860,7 @@ Bool_t AliAnalysisAlien::CreateDataset(const char *pattern)
                      Warning("CreateDataset","Dataset %s produced by: <%s> is empty !", file.Data(), command.Data());
                      gSystem->Exec("rm -f __tmp*");
                      fRunNumbers.ReplaceAll(os->GetString().Data(), "");
-                     continue;
+                     break;
                   }   
                   TString line;
                   ifstream in;
@@ -998,7 +998,7 @@ Bool_t AliAnalysisAlien::CreateDataset(const char *pattern)
                   if (nullFile) {
                      Warning("CreateDataset","Dataset %s produced by: <%s> is empty !", file.Data(), command.Data());
                      gSystem->Exec("rm -f __tmp*");
-                     continue;
+                     break;
                   }   
                   TString line;
                   ifstream in;