Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: 优化错误信息展示 #12

Open
bili-22 opened this issue Jul 25, 2024 · 2 comments
Open

Feature Request: 优化错误信息展示 #12

bili-22 opened this issue Jul 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@bili-22
Copy link

bili-22 commented Jul 25, 2024

http和inject等报错没有有效来源信息,是否可以减少stack层数
image
image

@shigma
Copy link
Member

shigma commented Jul 31, 2024

http 应该给的是完整信息了,看起来没法改善了。

下面的 inject 会考虑优化。

@shigma shigma added the enhancement New feature or request label Jul 31, 2024
@shigma
Copy link
Member

shigma commented Jul 31, 2024

研究了一下,任意位置的 new Error 很难拼接。如果只是从输出中删去内部调用,那并不会增加新的信息。https://github.com/cordiverse/cordis/tree/internal-trace 分支展示了一些初步的尝试。

inject warning 本身倒是很好处理,只需要去掉上层 stack 即可(其实有效来源是在的)。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants