0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 22:33:53 +01:00

Handle SetModel error, fixes one errcheck report (#257)

This commit is contained in:
Sandro Santilli 2017-01-05 09:31:07 +01:00 committed by Kim "BKC" Carlbäcker
parent 076f940f1f
commit 9b4f6c1c32

View file

@ -74,7 +74,9 @@ func runCreateUser(c *cli.Context) error {
setting.NewContext()
models.LoadConfigs()
models.SetEngine()
if err := models.SetEngine(); err != nil {
return fmt.Errorf("models.SetEngine: %v", err)
}
if err := models.CreateUser(&models.User{
Name: c.String("name"),