summaryrefslogtreecommitdiffstats
path: root/cmd/dump.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dump.go')
-rw-r--r--cmd/dump.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/dump.go b/cmd/dump.go
index d0f2be6b4b..c12a7a9180 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -56,7 +56,11 @@ func runDump(ctx *cli.Context) error {
setting.NewContext()
setting.NewServices() // cannot access session settings otherwise
models.LoadConfigs()
- models.SetEngine()
+
+ err := models.SetEngine()
+ if err != nil {
+ return err
+ }
tmpDir := ctx.String("tempdir")
if _, err := os.Stat(tmpDir); os.IsNotExist(err) {