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:
Aleix Conchillo Flaqué
2026-05-20 16:01:20 -07:00
parent d8947c68a9
commit b9aed0d673

View File

@@ -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.