firebase / firebase/firebase-admin-python

[FR] using `raise ... from ...` to improve sdk debugging

Ouverte
#685 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
api: core type: feature request
Langage dominant
Python
Étoiles
1.2k
Forks
359
Merge moyen
5 j 6 min
PR mergées (30 j)
2

Description

**Is your feature request related to a problem? Please describe.**
Hey firebase team 👋

I'm always frustrated when an internal error occurs in the sdk, but during handling an that internal error you the sdk raises another and that wipes some of the context of the original error.

**Describe the solution you'd like**
It would be really nice to use python's built-in `raise ... from ...` idiom to make the debugging experience better.
It is very feasible and easy to append a `from error` to any `raise` statement that references the original error.

**Describe alternatives you've considered**
Debuggin without this feature 😅

**Additional context**
I'll gladly implement this. PR coming soon :)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.