-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
能否支持下NoRoute设置 #900
Labels
Comments
不是有个NotFoundHandler吗?路由找不到会返回ErrNotFound, 可以设置echo.HTTPErrorHandler 在这处理所有错误 |
好的 谢谢~ |
@bsed 路由找不到 写在哪的 |
@zanjs 对啊。 问我现在用的是自定义错误 解决的 |
@bsed 哦 这是 重写 HTTPErrorHandler 右边 |
你可以看看知乎上某位童鞋写的对 echo 框架进行统一的自定义错误处理 , 我的是在他 基础上修改的,希望对你有帮助。 |
差不多 就这些了。 |
@bsed 谢谢啦🙃 |
客气,客气、 @zanjs (^__^) …… |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
能否支持下NoRoute设置
The text was updated successfully, but these errors were encountered: