Skip to content

Commit 3629cfc

Browse files
committed
fix condition and error message
1 parent eb2c03e commit 3629cfc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎Framework/Core/src/runDataProcessing.cxx‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,15 +1735,16 @@ int runStateMachine(DataProcessorSpecs const& workflow,
17351735
// after updating the urls, verify the consistency
17361736
for (auto& input : device.inputs) {
17371737
for (auto& param : input.metadata) {
1738-
if (param.type != VariantType::String || param.name.starts_with("ccdb:")) {
1738+
if (param.type != VariantType::String || !param.name.starts_with("ccdb:")) {
17391739
continue;
17401740
}
17411741
if (ccdbPaths.contains(param.name)) {
17421742
if (ccdbPaths[param.name] != param.defaultValue.get<std::string>()) {
1743-
throw runtime_error_f("Task {} has a CCDB path inconsistent with another found in same workflow: {} vs {}",
1744-
device.name.c_str(),
1745-
param.defaultValue.get<std::string>().c_str(),
1746-
ccdbPaths[param.name].c_str());
1743+
throw runtime_error_f(fmt::format("Task {} has a CCDB path inconsistent with another found in same workflow: {} vs {}",
1744+
device.name.c_str(),
1745+
param.defaultValue.get<std::string>().c_str(),
1746+
ccdbPaths[param.name].c_str())
1747+
.c_str());
17471748
}
17481749
} else {
17491750
ccdbPaths.emplace(param.name, param.defaultValue.get<std::string>());

0 commit comments

Comments
 (0)