Skip to content
Snippets Groups Projects
Commit 5b6a72f6 authored by Marco Biasini's avatar Marco Biasini
Browse files

setting unknown builder as default should not abort

instead of asserting that the builder has been registered,
throw a runtime error stating that the builder is not
known.

Fixes BZDNG-346
parent 8b548c33
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,8 @@ void Conopology::SetDefaultBuilder(const String& default_name) { ...@@ -161,7 +161,8 @@ void Conopology::SetDefaultBuilder(const String& default_name) {
if (builder) if (builder)
builder_map_["DEFAULT"]=builder; builder_map_["DEFAULT"]=builder;
else else
assert(0 && "what is this?"); throw std::runtime_error("trying to set unknown builder '"+
default_name+"' as the default");
} }
BuilderP Conopology::GetBuilder(const String& name) BuilderP Conopology::GetBuilder(const String& name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment