Skip to content

Commit 0dbb76d

Browse files
Add more context when raising an error for a typevar
1 parent 118c581 commit 0dbb76d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/egglog/declarations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class ClassTypeVarRef:
308308
module: str
309309

310310
def to_just(self) -> JustTypeRef:
311-
msg = "egglog does not support generic classes yet."
311+
msg = f"{self}: egglog does not support generic classes yet."
312312
raise NotImplementedError(msg)
313313

314314
def __str__(self) -> str:

0 commit comments

Comments
 (0)