Skip to content

Commit 7839a9d

Browse files
committed
log wrong name type in __build_class__
1 parent 1ce4af4 commit 7839a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __build_class__(func, name, *bases, **kwargs):
113113
if not hasattr(func, "__call__"):
114114
raise TypeError("__build_class__: func must be a function")
115115
if not isinstance(name, str):
116-
raise TypeError("__build_class__: name is not a string")
116+
raise TypeError("__build_class__: name is not a string, got '%s'" % type(name))
117117
return new_class(name, bases=bases, kwds=kwargs, exec_body=func)
118118

119119

0 commit comments

Comments
 (0)