Skip to content

Error handling #43

@daemon1024

Description

@daemon1024

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 call os.exit(1) which is an undesirable behaviour.

Instead we should log.Print the errors as well as a bot response for the same.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions