send error

This commit is contained in:
Niko Abeler 2022-09-10 14:20:07 +02:00
parent 41c2286311
commit e8184a5a4c
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ var webmentionCmd = &cobra.Command{
for _, webmention := range webmentions { for _, webmention := range webmentions {
go func(webmention owl.WebmentionOut) { go func(webmention owl.WebmentionOut) {
defer wg.Done() defer wg.Done()
err = post.SendWebmention(webmention) sendErr := post.SendWebmention(webmention)
if err != nil { if sendErr != nil {
println("Error sending webmentions: ", err.Error()) println("Error sending webmentions: ", sendErr.Error())
} else { } else {
println("Webmention sent to ", webmention.Target) println("Webmention sent to ", webmention.Target)
} }