Source

flowrate / flowrate / variables.py

Diff from to

File flowrate/variables.py

         else:
             l = self.locals
 
-        return eval(source, self.globals, l)
+        try:
+            return eval(source, self.globals, l)
+        except Exception, e:
+            e.args += (source, extra_locals)
+            raise
 
     def bind(self, name, source):
         """Register the given source."""