Skip to content

Commit d1df3ce

Browse files
committed
Use a more helpful TypeError message
1 parent 174b562 commit d1df3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/bindings/interface/SBValueExtensions.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ STRING_EXTENSION_OUTSIDE(SBValue)
3838
def __getitem__(self, key):
3939
if isinstance(key, str):
4040
return self.valobj.GetChildMemberWithName(key)
41-
raise TypeError("invalid subscript key")
41+
raise TypeError("member key must be a string")
4242

4343
return member_access(self)
4444

0 commit comments

Comments
 (0)