Skip to content

Commit 5414653

Browse files
committed
memory pool name, equipment exception handling
1 parent a5e7320 commit 5414653

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mainReadout.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int main(int argc, char* argv[])
198198
// cleanup the memory range
199199
b->clear();
200200
// add bank to list centrally managed
201-
theMemoryBankManager.addBank(b);
201+
theMemoryBankManager.addBank(b,kName);
202202
theLog.log("Bank %s added",kName.c_str());
203203
}
204204

@@ -297,6 +297,11 @@ int main(int argc, char* argv[])
297297
nEquipmentFailures++;
298298
continue;
299299
}
300+
catch (int errNo) {
301+
theLog.log("Failed to configure equipment %s : error #%d",kName.c_str(),errNo);
302+
nEquipmentFailures++;
303+
continue;
304+
}
300305
catch (...) {
301306
theLog.log("Failed to configure equipment %s",kName.c_str());
302307
nEquipmentFailures++;

0 commit comments

Comments
 (0)