Skip to content

Commit e351c8a

Browse files
committed
Update HdlUserExceptions.py
1 parent afb5b46 commit e351c8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

edg/core/HdlUserExceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def __init__(self, item_desc: str, object: Any, expected_type: Union[Type, Tuple
1818
else:
1919
expected_type_str = expected_type.__name__
2020

21-
super().__init__(f"{item_desc} expected to be of type {expected_type_str}, got {object} of type {type(object).__name__}")
21+
super().__init__(f"{item_desc} expected to be of type {expected_type_str}, got {object} of type {type(object).__name__}",
22+
f"ensure {item_desc} is of type {expected_type_str}")
2223

2324

2425
class EdgContextError(EdslUserError):

0 commit comments

Comments
 (0)