diff --git a/sn.go b/sn.go index 604ca13..fb445fc 100644 --- a/sn.go +++ b/sn.go @@ -94,7 +94,9 @@ func PostStoryToStackerNews(story *Story, options PostStoryOptions) (int, error) HackerNewsItemLink(story.ID), story.Score, story.Descendants, ) - sn.CreateComment(parentId, comment) + if _, err := sn.CreateComment(parentId, comment); err != nil { + return -1, fmt.Errorf("error posting comment :%w", err) + } return parentId, nil }