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
Just make all catch's throw errors instead of calling startBot() again.
We can use those Errors in a global try catch that we can use to spawn a subprocess, we can have that in a while loop.
Calling startBot is a good restart Mechanism but It fails because of stack overflow, if you want personalized logging for all the catche's then just throw personalized errors
for example,
try{functionThatCanThrowError();}catch(err){thrownewError("Error: ",{cause: err});// or "cause" in err}
The text was updated successfully, but these errors were encountered:
for example,
The text was updated successfully, but these errors were encountered: