Skip to content

Commit eb3a71b

Browse files
committed
add filename to error when it is known
1 parent aab0481 commit eb3a71b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Detectors/DCS/testWorkflow/src/dcs-config-proxy.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ InjectorFunction dcs2dpl(const std::string& acknowledge)
8181
o2::header::DataOrigin dataOrigin = getDataOriginFromFilename(filename);
8282
if (dataOrigin == o2::header::gDataOriginInvalid) {
8383
LOG(ERROR) << "unknown detector for " << filename;
84-
sendAnswer("error1: unrecognized filename", acknowledge, device);
84+
sendAnswer(fmt::format("{}:error1: unrecognized filename", filename), acknowledge, device);
8585
return;
8686
}
8787

@@ -91,7 +91,7 @@ InjectorFunction dcs2dpl(const std::string& acknowledge)
9191
auto channel = channelRetriever(outsp, *timesliceId);
9292
if (channel.empty()) {
9393
LOG(ERROR) << "No output channel found for OutputSpec " << outsp;
94-
sendAnswer("error2: no channel to send", acknowledge, device);
94+
sendAnswer(fmt::format("{}:error2: no channel to send", filename), acknowledge, device);
9595
return;
9696
}
9797

0 commit comments

Comments
 (0)