send error
This commit is contained in:
parent
41c2286311
commit
e8184a5a4c
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue