summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-23 17:11:18 +0800
committerGitHub <noreply@github.com>2017-01-23 17:11:18 +0800
commita8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149 (patch)
tree2ce52d45b441d96f650a997bf2068259ebf963f2 /cmd
parent74ed6dc3ad830d308a032fe213e9dfe83f954ffc (diff)
downloadgitea-a8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149.tar.gz
gitea-a8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149.zip
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
Diffstat (limited to 'cmd')
-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) {