You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
github.com/nxtrace/NTrace-core v1.3.7
我在我的程序依赖中导入了本项目,但由于 https://github.com/nxtrace/NTrace-V1/blob/main/wshandle/client.go
中存在很多 os.Exit(1) ,主要是 recreateWsConn 中获取不到token报错
2025/04/12 12:15:34 RetToken failed 3 times, please try again later
的时候,我以此项目为依赖集成开发一些东西的时候会直接使得整个程序退出,是否有更妥善的方式,只是异常退出而不是整个程序退出?os.Exit(1) 不会引发 panic,而是 直接终止当前程序的执行,我 recover() 拦截不了
Describe the solution you'd like
希望程序退出有一个可以被recover()拦截的方法,方便进行二次开发
Describe alternatives you've considered
项目在需要退出时使用 panic() 而不是 os.Exit(1)
Additional context
无
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
github.com/nxtrace/NTrace-core v1.3.7
我在我的程序依赖中导入了本项目,但由于
https://github.com/nxtrace/NTrace-V1/blob/main/wshandle/client.go
中存在很多 os.Exit(1) ,主要是 recreateWsConn 中获取不到token报错
2025/04/12 12:15:34 RetToken failed 3 times, please try again later
的时候,我以此项目为依赖集成开发一些东西的时候会直接使得整个程序退出,是否有更妥善的方式,只是异常退出而不是整个程序退出?os.Exit(1) 不会引发 panic,而是 直接终止当前程序的执行,我 recover() 拦截不了
Describe the solution you'd like
希望程序退出有一个可以被recover()拦截的方法,方便进行二次开发
Describe alternatives you've considered
项目在需要退出时使用 panic() 而不是 os.Exit(1)
Additional context
无
The text was updated successfully, but these errors were encountered: