From a9c74db4d1585bba6cf1518bcebad15ddf7c7d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20F=C3=B6rster?= Date: Wed, 12 Mar 2025 07:16:24 +0100 Subject: [PATCH] wrapper dec: change default error code --- src/delta_barth/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delta_barth/errors.py b/src/delta_barth/errors.py index 173b77a..cb61bcb 100644 --- a/src/delta_barth/errors.py +++ b/src/delta_barth/errors.py @@ -222,7 +222,7 @@ class ResultWrapper(t.Generic[T]): def wrap_result( - code_on_error: int = DEFAULT_API_ERR_CODE, + code_on_error: int = DEFAULT_INTERNAL_ERR_CODE, ) -> Callable[[Callable[P, T]], Callable[P, ResultWrapper[T]]]: def wrap_result(func: Callable[P, T]) -> Callable[P, ResultWrapper[T]]: @wraps(func)