Skip to content

Commit

Permalink
even more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matst80 committed Oct 24, 2024
1 parent e2e6a82 commit bd8939c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions command-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (cmd *commandHandler) OnMessage(msg *botapi.Message) error {
case "reply":
user := cmd.findUser(msg.Chat.ID)
if user == nil || user.LastMail.From == "" {
log.Printf("User %v", user)
return fmt.Errorf("user data not found")
}
subject := "Re: " + user.LastMail.Subject
Expand Down

0 comments on commit bd8939c

Please sign in to comment.