mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Fix undefined property error logging
This commit is contained in:
parent
19c4725d03
commit
7b8c14bc21
@ -1133,7 +1133,7 @@ function recallSavedValue(gui, controller) {
|
|||||||
|
|
||||||
function add(gui, object, property, params) {
|
function add(gui, object, property, params) {
|
||||||
if (object[property] === undefined) {
|
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;
|
let controller;
|
||||||
|
Loading…
Reference in New Issue
Block a user