Explorar el Código

not using Fatal for common error

master
Patrick Peng Sun hace 8 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

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

Cargando…
Cancelar
Guardar