dry-python / dry-python/returns
Feature request: make the safe decorator add notes to any exceptions that get thrown for better logging
Đang mở
enhancement
- Ngôn ngữ chính
- Python
- Star
- 4.4k
- Fork
- 155
- Merge trung bình
- 2 giờ 27 phút
- Pull request đã merge (30 ngày)
- 22
Mô tả
The results.safe decorator is a great tool to transform non railway oriented functions. One downside, however, is that the try-except block makes it harder to know where errors occurred, and therefore harder to debug. Using the add_notes method of Exceptions could fix this. Notes could be added to log what function the error occurred in, and possibly even line numbers.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.