dry-python / dry-python/returns
Feature request: make the safe decorator add notes to any exceptions that get thrown for better logging
Aperta
enhancement
- Lingua principale
- Python
- Stelle
- 4.4k
- Fork
- 155
- Merge medio
- 2h 27m
- PR unite (30g)
- 22
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.