Skip to content

Commit f414d23

Browse files
committed
turn error into warning and continue the scan
1 parent 900e624 commit f414d23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Detectors/MUON/MCH/Conditions/src/scan-hvlv-ccdb.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ void fillDataPoints(const std::vector<DPVAL>& dps, std::map<uint64_t, double>& d
479479
auto previousTS = dps2.rbegin()->first;
480480
if (ts != previousTS || getValue(*itDP) != dps2.rbegin()->second) {
481481
if (ts <= previousTS) {
482-
printf("error: wrong data point order (%llu <= %llu)\n", (ULL)ts, (ULL)previousTS);
483-
exit(1);
482+
printf("\e[0;31mwarning: wrong data point order (%llu <= %llu)\e[0m\n", (ULL)ts, (ULL)previousTS);
484483
}
485484
if (printWarning) {
486485
printf("%s%s missing the previous data point (dt = %s%llu ms)", color.c_str(), header.c_str(),
@@ -512,8 +511,7 @@ void fillDataPoints(const std::vector<DPVAL>& dps, std::map<uint64_t, double>& d
512511
for (++itDP; itDP < dps.end(); ++itDP) {
513512
ts = itDP->get_epoch_time();
514513
if (ts <= previousTS) {
515-
printf("error: wrong data point order (%llu <= %llu)\n", (ULL)ts, (ULL)previousTS);
516-
exit(1);
514+
printf("\e[0;31mwarning: wrong data point order (%llu <= %llu)\e[0m\n", (ULL)ts, (ULL)previousTS);
517515
}
518516
if (ts < tMin && (warningLevel > 1 || (warningLevel == 1 && ts + tolerance < tMin))) {
519517
printf("%s%s data point outside of file validity range (dt = -%llu ms)\e[0m\n",

0 commit comments

Comments
 (0)