1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-31 12:02:58 +00:00

fix dump non-exist log directory () ()

This commit is contained in:
Lunny Xiao 2020-01-17 13:02:41 +08:00 committed by GitHub
parent e2ddc42377
commit f766719895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -151,8 +151,10 @@ func runDump(ctx *cli.Context) error {
} }
} }
if err := z.AddDir("log", setting.LogRootPath); err != nil { if com.IsExist(setting.LogRootPath) {
fatal("Failed to include log: %v", err) if err := z.AddDir("log", setting.LogRootPath); err != nil {
fatal("Failed to include log: %v", err)
}
} }
if err = z.Close(); err != nil { if err = z.Close(); err != nil {