diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-23 17:11:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 17:11:18 +0800 |
commit | a8048c19f3dba52bbc0db6a0d8cbdfdf3fb6c149 (patch) | |
tree | 2ce52d45b441d96f650a997bf2068259ebf963f2 /cmd | |
parent | 74ed6dc3ad830d308a032fe213e9dfe83f954ffc (diff) | |
download | gitea-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.go | 6 |
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) { |