« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content-function.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content-function.js b/src/content-function.js
index 3536d5a8..73e4629e 100644
--- a/src/content-function.js
+++ b/src/content-function.js
@@ -325,7 +325,7 @@ export function fillRelationsLayoutFromSlotResults(relationIdentifier, results,
     }
 
     if (object.constructor !== Object) {
-      throw new Error(`Expected primitive, array, relation, or normal {key: value} style Object`);
+      throw new Error(`Expected primitive, array, relation, or normal {key: value} style Object, got constructor ${object.constructor?.name}`);
     }
 
     return Object.fromEntries(