Skip to content

Commit

Permalink
Improving error display on AbstractBackend implementation search
Browse files Browse the repository at this point in the history
  • Loading branch information
nibrunie committed Nov 18, 2018
1 parent 46042d0 commit 6b94e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metalibm_core/code_generation/abstract_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def is_map_supported_operation(self, op_map, optree, language = C_Code, debug =
for interface_condition in op_map[language][op_class][codegen_key][condition]:
try:
if interface_condition(*interface, optree = optree): return True
except TypeError:
Log.report(Log.Error, "Type Error for interface_condition on {}, {}", op_class, (str(ifce) for ifce in interface))
except TypeError as e:
Log.report(Log.Error, "Type Error for interface_condition on {}, {}", op_class, (str(ifce) for ifce in interface), error=e)
# unsupported condition or interface type
if debug:
Log.report(Log.Info, "unsupported condition key for {}", optree)
Expand Down

0 comments on commit 6b94e0a

Please sign in to comment.