mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Throw usefull error instead of just logging it
This commit is contained in:
parent
cb4ab12128
commit
a89db34ccb
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue