« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/find-reverse.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/find-reverse.js')
-rw-r--r--src/find-reverse.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/find-reverse.js b/src/find-reverse.js
index c99a4a71..770ac7f3 100644
--- a/src/find-reverse.js
+++ b/src/find-reverse.js
@@ -121,6 +121,10 @@ export function bind(wikiData, opts1, {
         ? wikiData
         : wikiData[spec.bindTo]);
 
+    if (!data) {
+      throw new Error(`Couldn't find data for ${key}, bindTo: ${spec.bindTo}`);
+    }
+
     bound[key] =
       (opts1
         ? (ref, opts2) =>