Commit c382b247 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

List what properties are bad in exception

parent 710dc0fc
......@@ -639,9 +639,15 @@ bool Algorithm::executeInternal() {
}
// Throw because something was invalid
if (numErrors > 0) {
std::stringstream msg;
msg << "Some invalid Properties found: [ ";
for (auto &error : errors) {
msg << error.first << " ";
}
msg << "]";
notificationCenter().postNotification(
new ErrorNotification(this, "Some invalid Properties found"));
throw std::runtime_error("Some invalid Properties found");
throw std::runtime_error(msg.str());
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment