fix: str representation for validation error
Signed-off-by: Tudor Plugaru <plugaru.tudor@protonmail.com>
This commit is contained in:
parent
21493e180f
commit
68337f9adc
|
@ -32,7 +32,7 @@ class CloudEventValidationError(BaseCloudEventException):
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
error_messages = [
|
error_messages = [
|
||||||
f"{key}: {', '.join(str(value))}" for key, value in self.errors.items()
|
f"{key}: {', '.join(str(e) for e in value)}" for key, value in self.errors.items()
|
||||||
]
|
]
|
||||||
return f"{super().__str__()}: {', '.join(error_messages)}"
|
return f"{super().__str__()}: {', '.join(error_messages)}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue