firebase / firebase/firebase-admin-python

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

未关闭
#685 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: core type: feature request
主要语言
Python
星标
1.2k
派生
359
平均合并
5 天 6 分钟
30 天内合并 PR
2

描述

**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 :)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。