dry-python / dry-python/returns
Feature request: make the safe decorator add notes to any exceptions that get thrown for better logging
Abierto
enhancement
- Lenguaje dominante
- Python
- Estrellas
- 4.4k
- Forks
- 155
- Merge medio
- 2 h 27 min
- PR fusionados (30 d)
- 22
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.