From a89db34ccbd7178bf17dec56896f98ee170cb4d1 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 11 Sep 2019 20:36:46 -0700 Subject: [PATCH] Throw usefull error instead of just logging it --- modern/src/maki-interpreter/objects.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modern/src/maki-interpreter/objects.js b/modern/src/maki-interpreter/objects.js index 6c14a8ae..80f3f173 100644 --- a/modern/src/maki-interpreter/objects.js +++ b/modern/src/maki-interpreter/objects.js @@ -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;