mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 15:50:03 +02:00
allowing jungfrau to continue with just a waning if detid.txt file not found (#589)
This commit is contained in:
parent
34acf553a1
commit
d431443dda
@ -224,10 +224,16 @@ int getModuleIdInFile(int *ret, char *mess, char *fileName) {
|
||||
// open id file
|
||||
FILE *fd = fopen(fname, "r");
|
||||
if (fd == NULL) {
|
||||
#ifdef JUNGFRAUD
|
||||
*ret = OK;
|
||||
LOG(logWARNING, ("Could not find detid_jungfrau.txt to set module id\n"));
|
||||
return 0;
|
||||
#else
|
||||
*ret = FAIL;
|
||||
strcpy(mess, "Could not find detid file\n");
|
||||
LOG(logERROR, ("%s\n\n", mess));
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
LOG(logINFOBLUE, ("Reading det id file %s\n", fileName));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user