We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
很多插件的处理方式为
if err != nil { ctx.SendChain(message.Text("ERROR: ", err)) return }
在没有堆栈信息的时候不好调试错误,希望改为如下形式
if err != nil { log.Error("<插件名称>",err) ctx.SendChain(message.Text("ERROR: ", err)) return }
The text was updated successfully, but these errors were encountered:
貌似可以添加一个新 API:ctx.SendErrorMesssge
ctx.SendErrorMesssge
Sorry, something went wrong.
可以加到ctxext。在控制台打印error和直接发送error效果相同,只要你把每个error的位置搞清楚肯定能知道哪里出了问题。
No branches or pull requests
很多插件的处理方式为
在没有堆栈信息的时候不好调试错误,希望改为如下形式
The text was updated successfully, but these errors were encountered: