File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -497,10 +497,22 @@ int main(int argc, char *argv[])
497
497
498
498
spdlog::info (" Starting readout. Running for {} seconds." , timeToRun.count ());
499
499
500
- if (auto ec = rdo.start (timeToRun))
500
+ if (auto ec = rdo.start (timeToRun, initOptions ))
501
501
{
502
502
cerr << " Error starting readout: " << ec.message () << endl;
503
- throw std::runtime_error (" ReadoutWorker error" );
503
+
504
+ auto initResults = rdo.getInitResults ();
505
+
506
+ for (const auto &cmdResult: initResults.init )
507
+ {
508
+ if (cmdResult.ec )
509
+ {
510
+ std::cerr << fmt::format (" Error during DAQ init sequence: cmd={}, ec={}\n " ,
511
+ to_string (cmdResult.cmd ), cmdResult.ec .message ());
512
+ }
513
+ }
514
+
515
+ throw std::runtime_error (" DAQ startup start error" );
504
516
}
505
517
506
518
MiniDaqCountersUpdate counters;
You can’t perform that action at this time.
0 commit comments