Rename BaseTask.send_error to send_bus_error_message
Symmetric with send_bus_message; "send_bus_error" on its own reads ambiguously (sounds like an error about the bus, à la SIGBUS) and the underlying types are BusTaskErrorMessage / BusTaskLocalErrorMessage, so keeping "_message" in the name matches what's actually sent.
This commit is contained in:
@@ -529,7 +529,7 @@ class BaseTask(BaseObject, BusSubscriber):
|
||||
if self._bus:
|
||||
await self._bus.send(message)
|
||||
|
||||
async def send_error(self, error: str) -> None:
|
||||
async def send_bus_error_message(self, error: str) -> None:
|
||||
"""Report an error on the bus.
|
||||
|
||||
Child tasks send a local-only message to the parent.
|
||||
|
||||
Reference in New Issue
Block a user