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

抛出异常应当不全错误信息 #16

Closed
xuzuxing opened this issue Jan 4, 2021 · 5 comments
Closed

抛出异常应当不全错误信息 #16

xuzuxing opened this issue Jan 4, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@xuzuxing
Copy link

xuzuxing commented Jan 4, 2021

在使用中间件 tauthz\middleware\base::class 时,Unauthorized 异常触发并没有message属性,建议添加

@hsluoyz
Copy link
Member

hsluoyz commented Jan 4, 2021

@techoner

@leeqvip leeqvip added the enhancement New feature or request label Jan 7, 2021
@leeqvip
Copy link
Member

leeqvip commented Jan 7, 2021

@Cromwell98 Can you make a PR?

@15969652028
Copy link

在使用中间件 tauthz\middleware\base::class 时,Unauthorized 异常触发并没有message属性,建议添加

我也看了下中间件,很简单需要完善。不行只能自己写

@hsluoyz
Copy link
Member

hsluoyz commented Mar 15, 2024

@15969652028 Can you make a PR?

@leeqvip
Copy link
Member

leeqvip commented Mar 22, 2024

@15969652028 我在最新版本版本中加了403状态码和提示。
因实际需求不同,建议采用异常捕获处理,参考TP官方文档 异常处理

@leeqvip leeqvip closed this as completed Mar 27, 2024
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

4 participants