Skip to content
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

Add proper error handling #49

Open
NanoSector opened this issue Jan 4, 2015 · 0 comments
Open

Add proper error handling #49

NanoSector opened this issue Jan 4, 2015 · 0 comments

Comments

@NanoSector
Copy link
Contributor

Right now the bot crashes on almost any error that occurs. I have a !exec command up that handles executing PHP code (only by me), but I have to triple-check my code because the bot will crash if anything is wrong with it.

Possibly the main loop could be wrapped in a try {} catch {exception} statement, but that won't catch everything. To add proper error handling the bot'll need a custom error handler like described here: http://php.net/manual/en/function.set-error-handler.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant