From a8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 23 Jan 2017 17:11:18 +0800 Subject: Update xorm and fix dump command (#692) * update xorm and fix dump * catch database init error * still use dumpTables * fix dump bool type * update vendor.json --- cmd/dump.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmd/dump.go') 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) { -- cgit v1.2.3