Преглед на файлове

Fixed broken accesses to username

Yentl Van Tendeloo преди 9 години
родител
ревизия
b342485708
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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"])]