Tweak `current_actor()` failure msg

runtime_to_msgspec
Tyler Goodlet 2024-04-18 15:41:06 -04:00
parent e5f0b450cf
commit 3018187228
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ def current_actor(
err_on_no_runtime
and _current_actor is None
):
msg: str = 'No local actor has been initialized yet'
msg: str = 'No local actor has been initialized yet?\n'
from ._exceptions import NoRuntime
if last := last_actor():
@ -79,8 +79,8 @@ def current_actor(
# this process.
else:
msg += (
'No last actor found?\n'
'Did you forget to open one of:\n\n'
# 'No last actor found?\n'
'\nDid you forget to call one of,\n'
'- `tractor.open_root_actor()`\n'
'- `tractor.open_nursery()`\n'
)