Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Nov 9, 2023
1 parent 404c92c commit f6cbcca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/data/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (m *Manager) GetTallies() (map[string]types.ChainTallyInfos, error) {

if len(errors) > 0 {
m.Logger.Error().Msg("Errors getting tallies info, not processing")
return map[string]types.ChainTallyInfos{}, fmt.Errorf("could not get tallies info")
return map[string]types.ChainTallyInfos{}, fmt.Errorf("could not get tallies info: got %d errors", len(errors))
}

tallyInfos := make(map[string]types.ChainTallyInfos, 0)
Expand Down
3 changes: 2 additions & 1 deletion pkg/reporters/telegram/tally.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package telegram

import (
"bytes"
"fmt"

tele "gopkg.in/telebot.v3"
)
Expand All @@ -18,7 +19,7 @@ func (reporter *Reporter) HandleTally(c tele.Context) error {

tallies, err := reporter.DataManager.GetTallies()
if err != nil {
return reporter.BotReply(c, "Error getting tallies info")
return reporter.BotReply(c, fmt.Sprintf("Error getting tallies info: %s", err))
}

template, err := reporter.GetTemplate("tally")
Expand Down

0 comments on commit f6cbcca

Please sign in to comment.