summaryrefslogtreecommitdiffstats
path: root/cmd/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/admin.go')
-rw-r--r--cmd/admin.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 440a172a82..f4782195e4 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -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"),