dry-python / dry-python/returns
Feature request: make the safe decorator add notes to any exceptions that get thrown for better logging
オープン
enhancement
- 主要言語
- Python
- スター
- 4.4k
- フォーク
- 155
- 平均マージ
- 2時間 27分
- マージ済み PR(30日)
- 22
説明
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.
コントリビューションガイド
評価
この issue はまだ評価されていません。