Explorar el Código

not using Fatal for common error

master
Patrick Peng Sun hace 9 años
padre
commit
82350b8e19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      outMsg.go

+ 1
- 1
outMsg.go Ver fichero

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)

Cargando…
Cancelar
Guardar