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 {
go func(webmention owl.WebmentionOut) {
defer wg.Done()
err = post.SendWebmention(webmention)
if err != nil {
println("Error sending webmentions: ", err.Error())
sendErr := post.SendWebmention(webmention)
if sendErr != nil {
println("Error sending webmentions: ", sendErr.Error())
} else {
println("Webmention sent to ", webmention.Target)
}