Skip to content
Snippets Groups Projects
Commit 4f8f27b8 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Imrpoved display

parent 5460accb
No related branches found
No related tags found
1 merge request!332Add selection mechanism in graph
......@@ -76,16 +76,12 @@ struct Registrar {
}
static auto create(const registrar_key& key) {
if (!exists(key)) {
Log::error("missing or invalid registrar key: {} for registrable object {}\nDid you include/import the corresponding module?\nIf so, it is possible that the object is not yet supported.", key, typeid(C).name());
Log::info("Available registrar keys are:");
for(const auto& keyValue : C::registry()) {
Log::info("- {}", keyValue.first);
}
AIDGE_THROW_OR_ABORT(std::runtime_error, "missing or invalid registrar key");
}
AIDGE_ASSERT(exists(key),
"missing or invalid registrar key: {} for registrable object {}\n"
"Did you include/import the corresponding module?\n"
"If so, it is possible that the object is not yet supported.\n\n"
"Available registrar keys are:\n {}",
key, typeid(C).name(), fmt::join(getKeys(), "\n "));
return C::registry().at(key);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment