Detail `pikerd` sock bind collision in error

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-31 21:56:36 -04:00
parent 1cc37673a4
commit ffa3e80503
1 changed files with 4 additions and 1 deletions

View File

@ -183,7 +183,10 @@ async def open_pikerd(
trio.open_nursery() as service_nursery, trio.open_nursery() as service_nursery,
): ):
if root_actor.accept_addr != reg_addr: if root_actor.accept_addr != reg_addr:
raise RuntimeError(f'Daemon failed to bind on {reg_addr}!?') raise RuntimeError(
f'`pikerd` failed to bind on {reg_addr}!\n'
'Maybe you have another daemon already running?'
)
# assign globally for future daemon/task creation # assign globally for future daemon/task creation
Services.actor_n = actor_nursery Services.actor_n = actor_nursery