forked from goodboy/tractor
1
0
Fork 0

Tweak `breakpoint()` usage error message

runtime_to_msgspec
Tyler Goodlet 2024-04-30 12:56:29 -04:00
parent 30c5896d26
commit 338395346d
1 changed files with 3 additions and 2 deletions

View File

@ -124,8 +124,9 @@ async def open_root_actor(
# usage by a clobbered TTY's stdstreams! # usage by a clobbered TTY's stdstreams!
def block_bps(*args, **kwargs): def block_bps(*args, **kwargs):
raise RuntimeError( raise RuntimeError(
'`tractor` blocks built-in `breakpoint()` calls by default!\n' 'Trying to use `breakpoint()` eh?\n'
'If you need to us it please install `greenback` and set ' 'Welp, `tractor` blocks `breakpoint()` built-in calls by default!\n'
'If you need to use it please install `greenback` and set '
'`debug_mode=True` when opening the runtime ' '`debug_mode=True` when opening the runtime '
'(either via `.open_nursery()` or `open_root_actor()`)\n' '(either via `.open_nursery()` or `open_root_actor()`)\n'
) )