提交 33e7dc08 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added name of output variable error message to facilitate debugging (can someone…

added name of output variable error message to facilitate debugging (can someone who knows who the exception works push it into the text of the exception?)
上级 43feabff
...@@ -1102,6 +1102,12 @@ def _execute(cthunk, init_tasks, tasks, error_storage): ...@@ -1102,6 +1102,12 @@ def _execute(cthunk, init_tasks, tasks, error_storage):
except: except:
print >> sys.stderr, 'ERROR retrieving error_storage', error_storage print >> sys.stderr, 'ERROR retrieving error_storage', error_storage
raise raise
#TODO-- someone who understands how these exceptions work, please put this info into the exception message itself
# (exc_value.message seems to be ignored)
print "while computing "+str(task.outputs)
raise exc_type, exc_value, exc_trace raise exc_type, exc_value, exc_trace
execute.cthunk = cthunk execute.cthunk = cthunk
return execute return execute
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论