Skip to content

Commit 8651b1a

Browse files
When raising conversion error just print type not full value
1 parent 98f8e32 commit 8651b1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/egglog/runtime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,9 @@ def _numeric_binary_method(
816816
best_method = min_binary_conversion(name, resolve_type(self), resolve_type(other))
817817

818818
if not best_method:
819-
raise RuntimeError(f"Cannot resolve {name} for {self} and {other}, no conversion found")
819+
raise RuntimeError(
820+
f"Cannot resolve {name} for {resolve_type(self)} and {resolve_type(other)}, no conversion found"
821+
)
820822
self, other = best_method[0](self), best_method[1](other)
821823

822824
method_ref = MethodRef(self.__egg_class_ident__, name)

0 commit comments

Comments
 (0)