Skip to content

Commit

Permalink
Proper fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Byrd committed Dec 19, 2017
1 parent a629ec5 commit 25672b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package telebot

import (
"encoding/json"
"fmt"
"strconv"

"github.com/pkg/errors"
Expand All @@ -19,7 +18,7 @@ func (b *Bot) deferDebug() {
if err, ok := r.(error); ok {
b.debug(err)
} else if str, ok := r.(string); ok {
b.debug(fmt.Errorf("%s", str))
b.debug(errors.Errorf("%s", str))
}
}
}
Expand Down

0 comments on commit 25672b8

Please sign in to comment.