提交 b36ab29e authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix scan handling of error when on CVM.

上级 67d7d461
...@@ -989,7 +989,7 @@ class Scan(PureOp): ...@@ -989,7 +989,7 @@ class Scan(PureOp):
# done by raise_with_op is not implemented in C. # done by raise_with_op is not implemented in C.
if hasattr(self.fn, 'thunks'): if hasattr(self.fn, 'thunks'):
# For the CVM # For the CVM
gof.vm.raise_with_op(self.fn.nodes[self.fn.position_of_error], gof.link.raise_with_op(self.fn.nodes[self.fn.position_of_error],
self.fn.thunks[self.fn.position_of_error]) self.fn.thunks[self.fn.position_of_error])
else: else:
# For the c linker # For the c linker
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -337,7 +337,7 @@ def perform( ...@@ -337,7 +337,7 @@ def perform(
# this is a new vm-provided function # this is a new vm-provided function
# the C VM needs this because the exception manipulation # the C VM needs this because the exception manipulation
# done by raise_with_op is not implemented in C. # done by raise_with_op is not implemented in C.
gof.vm.raise_with_op(fn.nodes[fn.position_of_error]) gof.link.raise_with_op(fn.nodes[fn.position_of_error])
else: else:
# old-style linkers raise their own exceptions # old-style linkers raise their own exceptions
raise raise
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论