Skip to content

Commit c384d63

Browse files
committed
fix: Add __str__ and __repr__ methods for better debugging of Server Error and fix the misleading comment in the constructor
Fix class name in __str__ method
1 parent a7d0a41 commit c384d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/utils/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __str__(self) -> str:
7474
if self.error is None:
7575
return 'None'
7676
if self.error.message is None:
77-
return f'{type(self.error)}'
77+
return self.error.__class__.__name__
7878
return self.error.message
7979

8080
def __repr__(self) -> str:

0 commit comments

Comments
 (0)