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

Imrpoved display

parent 2a162962
No related branches found
No related tags found
No related merge requests found
Pipeline #65861 passed
This commit is part of merge request !332. Comments created here will be created in the context of that merge request.
...@@ -76,16 +76,12 @@ struct Registrar { ...@@ -76,16 +76,12 @@ struct Registrar {
} }
static auto create(const registrar_key& key) { static auto create(const registrar_key& key) {
if (!exists(key)) { AIDGE_ASSERT(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()); "missing or invalid registrar key: {} for registrable object {}\n"
"Did you include/import the corresponding module?\n"
Log::info("Available registrar keys are:"); "If so, it is possible that the object is not yet supported.\n\n"
for(const auto& keyValue : C::registry()) { "Available registrar keys are:\n {}",
Log::info("- {}", keyValue.first); key, typeid(C).name(), fmt::join(getKeys(), "\n "));
}
AIDGE_THROW_OR_ABORT(std::runtime_error, "missing or invalid registrar key");
}
return C::registry().at(key); 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