Przeglądaj źródła

not using Fatal for common error

master
Patrick Peng Sun 9 lat temu
rodzic
commit
82350b8e19
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      outMsg.go

+ 1
- 1
outMsg.go Wyświetl plik

for _, a := range articles { for _, a := range articles {
if count >= 8 { if count >= 8 {
err := errors.New("too many articles, only take first 8") err := errors.New("too many articles, only take first 8")
log.Fatal(err)
log.Println(err)
break break
} }
s := buildArticleItem(a) s := buildArticleItem(a)

Ładowanie…
Anuluj
Zapisz