diff options
| author | lost+skunk <[email protected]> | 2024-09-04 20:22:58 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-04 20:22:58 +0300 |
| commit | c39399403e031a8c1ad53969770e4261d2c9e7aa (patch) | |
| tree | ecac0ca1c9f095803abec42962d5aa31107676f1 /app/parsers.go | |
| parent | 5a8a0987a2db22de6b9dd184bf40a3e2d16c5bbf (diff) | |
| download | skunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.tar.gz skunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.tar.bz2 skunky-art-c39399403e031a8c1ad53969770e4261d2c9e7aa.zip | |
отображение ошибок
Diffstat (limited to 'app/parsers.go')
| -rw-r--r-- | app/parsers.go | 6 |
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) |
