отображение ошибок

This commit is contained in:
lost+skunk 2024-09-04 20:22:58 +03:00
parent 5a8a0987a2
commit c39399403e
11 changed files with 74 additions and 35 deletions

View file

@ -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)