Skip to content

Commit 7abba7b

Browse files
committed
fix condition and error message
1 parent 042b4fc commit 7abba7b

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
@@ -1734,15 +1734,16 @@ int runStateMachine(DataProcessorSpecs const& workflow,
17341734
// after updating the urls, verify the consistency
17351735
for (auto& input : device.inputs) {
17361736
for (auto& param : input.metadata) {
1737-
if (param.type != VariantType::String || param.name.starts_with("ccdb:")) {
1737+
if (param.type != VariantType::String || !param.name.starts_with("ccdb:")) {
17381738
continue;
17391739
}
17401740
if (ccdbPaths.contains(param.name)) {
17411741
if (ccdbPaths[param.name] != param.defaultValue.get<std::string>()) {
1742-
throw runtime_error_f("Task {} has a CCDB path inconsistent with another found in same workflow: {} vs {}",
1743-
device.name.c_str(),
1744-
param.defaultValue.get<std::string>().c_str(),
1745-
ccdbPaths[param.name].c_str());
1742+
throw runtime_error_f(fmt::format("Task {} has a CCDB path inconsistent with another found in same workflow: {} vs {}",
1743+
device.name.c_str(),
1744+
param.defaultValue.get<std::string>().c_str(),
1745+
ccdbPaths[param.name].c_str())
1746+
.c_str());
17461747
}
17471748
} else {
17481749
ccdbPaths.emplace(param.name, param.defaultValue.get<std::string>());

0 commit comments

Comments
 (0)