Throw usefull error instead of just logging it

This commit is contained in:
Jordan Eldredge 2019-09-11 20:36:46 -07:00
parent cb4ab12128
commit a89db34ccb

View file

@ -3943,8 +3943,7 @@ Object.values(normalizedObjects).forEach(object => {
if (parentClass == null) {
if (object.parent === "@{00000000-0000-0000-0000-000000000000}@") {
} else {
console.log(`Could not find parent class named ${object.parent}`);
throw new Error("wat");
throw new Error(`Could not find parent class named ${object.parent}`);
}
}
object.parentClass = parentClass;