Skip to content

Commit

Permalink
fix: correct capitalization in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction committed Sep 18, 2024
1 parent ba83f80 commit 2bdeb49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notify/schedule/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *Scheduler) getNotifyFunc(n notify.Notification) (func(), error) {
case "telegram":

if nil == s.telegram {
return nil, errors.New("No notifier. Unable to create Notification")
return nil, errors.New("no notifier. Unable to create Notification")
}

f = func() {
Expand Down
2 changes: 1 addition & 1 deletion notify/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Telegram struct {
func New(conf config.Config) (*Telegram, error) {
bot, err := tg.NewBotAPI(conf.Telegram.Token)
if err != nil {
return nil, fmt.Errorf("Could not create telegram Bot; %w", err)
return nil, fmt.Errorf("could not create telegram Bot; %w", err)
}

return &Telegram{
Expand Down

0 comments on commit 2bdeb49

Please sign in to comment.