]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ITSSPDSCANda.cxx
Proper message and abort in case of missing DATE_RUN_NUMBER env variable
[u/mrichter/AliRoot.git] / ITS / ITSSPDSCANda.cxx
index 9bf0f6c348d5559f3992f561a038017d8e8e2f86..5859a5380492e397b2ade3e897fecdee697c18b6 100644 (file)
@@ -145,6 +145,10 @@ int main(int argc, char **argv) {
   int startSeg = 1;
 
 #ifndef SPD_DA_OFF
+  if (getenv("DATE_RUN_NUMBER")==0) {
+    printf("DATE_RUN_NUMBER not properly set.\n");
+    return -1;
+  }
   int runNr = atoi(getenv("DATE_RUN_NUMBER"));
 #else
   int runNr = atoi(argv[1]);