Explorar el Código

Still print error if user does not exist

tags/v1.0.0
Flare hace 7 años
padre
commit
fd6be0d17e
No account linked to committer's email address
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      models/issue.go

+ 4
- 0
models/issue.go Ver fichero

@@ -96,6 +96,10 @@ func (issue *Issue) loadAttributes(e Engine) (err error) {
if err != nil {
issue.PosterID = -1
issue.Poster = NewGhostUser()
if !IsErrUserNotExist(err) {
return fmt.Errorf("getUserByID.(poster) [%d]: %v", issue.PosterID, err)
}
return
}
}


Cargando…
Cancelar
Guardar