From 03a45b6077d1cba4ce9d7c0e78f825035537717c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 30 Aug 2022 20:25:31 +0200 Subject: [PATCH] Improve error message when a Combine is not properly initialized --- UI/Base/Combine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/Base/Combine.ts b/UI/Base/Combine.ts index 05ad8de84..5c3c8a1eb 100644 --- a/UI/Base/Combine.ts +++ b/UI/Base/Combine.ts @@ -39,7 +39,7 @@ export default class Combine extends BaseUIElement { const el = document.createElement("span") try { if(this.uiElements === undefined){ - console.error("PANIC") + console.error("PANIC: this.uiElements is undefined. (This might indicate a constructor which did not call 'super'. The constructor name is", this.constructor/*Disable code quality: used for debugging*/.name+")") } for (const subEl of this.uiElements) { if (subEl === undefined || subEl === null) {