From 7b8c14bc215dbf40214175b8dd94e37c1216e46c Mon Sep 17 00:00:00 2001 From: sliterok <12751644+sliterok@users.noreply.github.com> Date: Sun, 14 Aug 2022 13:01:19 +0200 Subject: [PATCH] Fix undefined property error logging --- src/dat/gui/GUI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dat/gui/GUI.js b/src/dat/gui/GUI.js index dbf1ae6..369e298 100644 --- a/src/dat/gui/GUI.js +++ b/src/dat/gui/GUI.js @@ -1133,7 +1133,7 @@ function recallSavedValue(gui, controller) { function add(gui, object, property, params) { if (object[property] === undefined) { - throw new Error(`Object "${object}" has no property "${property}"`); + throw new Error(`Object "${JSON.stringify(object)}" has no property "${property}"`); } let controller;