Browse Source

Fixed broken accesses to username

Yentl Van Tendeloo 8 years ago
parent
commit
07b08ee3a3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      kernel/modelverse_kernel/main.py

+ 3 - 3
kernel/modelverse_kernel/main.py

@@ -422,7 +422,7 @@ class ModelverseKernel(object):
                                    ("CNV", ["finish"]),
                                   ]
             if variable is None:
-                raise Exception("%s: not found as global: %s" % (self.debug_info[username], var_name))
+                raise Exception("Not found as global: %s" % var_name)
 
             # Resolved a global, so this is a string
             # Potentially, this might even be a function that we have precompiled already!
@@ -731,9 +731,9 @@ class ModelverseKernel(object):
         if len(matches) == 1:
             return matches[0]
         elif len(matches) > 1:
-            raise Exception("%s: error: multiple overlapping elements" % self.debug_info[username])
+            raise Exception("Error: multiple overlapping elements")
         else:
-            raise Exception("%s: error: could not find any overlap" % self.debug_info[username])
+            raise Exception("Error: could not find any overlap")
 
     def call_param(self, user_root):
         user_frame, =       yield [("RD", [user_root, "frame"])]