Skip to content

Commit a4cc067

Browse files
committed
Show one ERROR per device and do not return exitCode=1
1 parent 2aaf427 commit a4cc067

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Framework/Core/src/runDataProcessing.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,12 @@ int calculateExitCode(DeviceSpecs& deviceSpecs, DeviceInfos& infos)
278278
for (size_t di = 0; di < deviceSpecs.size(); ++di) {
279279
auto& info = infos[di];
280280
auto& spec = deviceSpecs[di];
281-
if (exitCode == 0 && info.maxLogLevel >= LogParsingHelpers::LogLevel::Error) {
281+
if (info.maxLogLevel >= LogParsingHelpers::LogLevel::Error) {
282282
LOG(ERROR) << "SEVERE: Device " << spec.name << " (" << info.pid << ") had at least one "
283283
<< "message above severity ERROR: " << std::regex_replace(info.firstSevereError, regexp, "");
284-
exitCode = 1;
284+
if (info.maxLogLevel >= LogParsingHelpers::LogLevel::Fatal) {
285+
exitCode = 1;
286+
}
285287
}
286288
}
287289
return exitCode;

0 commit comments

Comments
 (0)