summaryrefslogtreecommitdiff
path: root/app/parsers.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/parsers.go')
-rw-r--r--app/parsers.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/parsers.go b/app/parsers.go
index 3a318be..b7f15fd 100644
--- a/app/parsers.go
+++ b/app/parsers.go
@@ -9,7 +9,11 @@ import (
"golang.org/x/net/html"
)
-func (s skunkyart) ParseComments(c devianter.Comments) string {
+func (s skunkyart) ParseComments(c devianter.Comments, daError devianter.Error) string {
+ if daError.RAW != nil {
+ return "Failed to fetch comments :("
+ }
+
var cmmts strings.Builder
replied := make(map[int]string)