firebase / firebase/firebase-admin-python

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

Đang mở
#685 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: core type: feature request
Ngôn ngữ chính
Python
Star
1.2k
Fork
359
Merge trung bình
5 ngày 6 phút
Pull request đã merge (30 ngày)
2

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.