Fix undefined property error logging

This commit is contained in:
sliterok 2022-08-14 13:01:19 +02:00 committed by GitHub
parent 19c4725d03
commit 7b8c14bc21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;