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 摘要。