提交 176d12b1 authored 作者: Frederic Bastien's avatar Frederic Bastien

Return a better error type.

上级 57709e8b
......@@ -1143,7 +1143,7 @@ for(int i=0;i<%(iname)s->nd;i++){
}
"""%locals()
else:
raise Exception("The CAReduce.scalar_op must have an identity field.")
raise TypeError("The CAReduce.scalar_op must have an identity field.")
task0_decl = "%(dtype)s& %(name)s_i = *%(name)s_iter;\n%(name)s_i = %(identity)s;" % dict(dtype = odtype,
name = onames[0],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论