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
Describe the bug
There are lots of edge cases and instances where bot crashes due to some unexpected syntax or error.
Example : Unexpected syntax in /addmeetup
/addmeetup
Expected behavior
The bot shouldn't crash instead it should respond with something like " Unexpected behaviour, please try again "
** Additional Context **
We are using log.Fatal / log.Fatalln when an error occurs. This causes the program to call os.exit(1) which is an undesirable behaviour.
log.Fatal
log.Fatalln
os.exit(1)
Instead we should log.Print the errors as well as a bot response for the same.
log.Print
The text was updated successfully, but these errors were encountered:
@daemon1024 : let me pick this one :
Sorry, something went wrong.
@OgmaJ sure.
https://github.com/osdc/bots/blob/master/telegram-bot/meetup.go#L139-L141
This may help you out.
Error handling osdc#43 : migration from fatal to println
ac46a8c
- remove fmt to log package for printing issue
56d6652
OgmaJ
Successfully merging a pull request may close this issue.
Describe the bug
There are lots of edge cases and instances where bot crashes due to some unexpected syntax or error.
Example : Unexpected syntax in
/addmeetup
Expected behavior
The bot shouldn't crash instead it should respond with something like " Unexpected behaviour, please try again "
** Additional Context **
We are using
log.Fatal
/log.Fatalln
when an error occurs. This causes the program to callos.exit(1)
which is an undesirable behaviour.Instead we should
log.Print
the errors as well as a bot response for the same.The text was updated successfully, but these errors were encountered: