Skip to content

Commit

Permalink
Fixed error output on ChannelFileSend
Browse files Browse the repository at this point in the history
  • Loading branch information
kepler471 committed Sep 9, 2020
1 parent 3591664 commit ad0e38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func handleVredditLink(s *discordgo.Session, m *discordgo.MessageCreate) {
}
_, err = s.ChannelFileSend(c, file.Info.Name(), o)
if err != nil {
log.Printf("Error uploading %s's v.redd.it media, %s", m.Author.Username, file.Info.Name())
log.Printf("Error uploading %s's media %s, %v", m.Author.Username, file.Info.Name(), err)
}
_ = o.Close()
}
Expand Down

0 comments on commit ad0e38f

Please sign in to comment.