openwechat
openwechat copied to clipboard
如何catch panic error
目前似乎在运行过程中,偶尔会发生panic error,尚不知道为何原因产生,有什么办法可以catch这个panic,一旦发生就pass,继续运行啊
panic是默认行为,重载这个默认行为即可。 需要对Bot的MessageErrorHandler重新赋值。
JinTian @.***> 于2022年9月13日周二 14:40写道:
目前似乎在运行过程中,偶尔会发生panic error,尚不知道为何原因产生,有什么办法可以catch这个panic,一旦发生就pass,继续运行啊
— Reply to this email directly, view it on GitHub https://github.com/eatmoreapple/openwechat/issues/106, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARP5DT5ZBT4GRDJ2SG4NWKTV6AOWPANCNFSM6AAAAAAQLDSPJI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
理论上我已经设置了,蛋还是会panic
能追踪到是哪行代码吗?
zh这是log,大佬请分析一下
会是我这行代码造成的吗?

没有处理err,看看error
thankyou good