project: fixed bugs in error handling

This commit is contained in:
itsmattkc
2021-09-29 02:41:26 -07:00
parent efcf0ed331
commit 8b3ea8c421
2 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -359,11 +359,13 @@ void Node::LoadInput(QXmlStreamReader *reader, XMLNodeData &xml_node_data, const
if (param_id.isEmpty()) {
qWarning() << "Failed to load parameter with missing ID";
reader->skipCurrentElement();
return;
}
if (!HasInputWithID(param_id)) {
qWarning() << "Failed to load parameter that didn't exist";
qWarning() << "Failed to load parameter that didn't exist:" << param_id;
reader->skipCurrentElement();
return;
}