Skip to content

Commit 01f0550

Browse files
committed
docs: improve clarity in handle_sync_errors decorator docstring
1 parent 4bb9693 commit 01f0550

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/humanloop/cli/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ def wrapper(*args, **kwargs):
8888
return wrapper
8989

9090
def handle_sync_errors(f: Callable) -> Callable:
91-
"""Decorator for handling sync operation errors."""
91+
"""Decorator for handling sync operation errors.
92+
93+
If an error occurs in any operation that uses this decorator, it will be logged and the program will exit with a non-zero exit code.
94+
"""
9295
@wraps(f)
9396
def wrapper(*args, **kwargs):
9497
try:

0 commit comments

Comments
 (0)