Selaa lähdekoodia

not using Fatal for common error

master
Patrick Peng Sun 8 vuotta sitten
vanhempi
commit
82350b8e19
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      outMsg.go

+ 1
- 1
outMsg.go Näytä tiedosto

@@ -178,7 +178,7 @@ func buildNewsMsg(ToUserName, title, description string, articles []Article) (ms
for _, a := range articles {
if count >= 8 {
err := errors.New("too many articles, only take first 8")
log.Fatal(err)
log.Println(err)
break
}
s := buildArticleItem(a)

Loading…
Peruuta
Tallenna