diff --git a/fastjsonschema/generator.py b/fastjsonschema/generator.py
index <HASH>..<HASH> 100644
--- a/fastjsonschema/generator.py
+++ b/fastjsonschema/generator.py
@@ -213,7 +213,7 @@ class CodeGenerator:
             self.l('func({variable})')
         else:
             #TODO: Create more functions for any ref and call it here.
-            self.l('pass')
+            raise Exception('Local ref is not supported yet')
 
     def generate_type(self):
         """
#8 Raise exception instead of silent pass