Skip to content

Commit

Permalink
Don't allow export-db if project not started, fixes ddev#1892 (ddev#1915
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rfay committed Jan 15, 2020
1 parent 100c362 commit 8269041
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/ddev/cmd/export-db.go
Expand Up @@ -33,10 +33,7 @@ var ExportDBCmd = &cobra.Command{
}

if app.SiteStatus() != ddevapp.SiteRunning {
err = app.Start()
if err != nil {
util.Failed("Failed to start app %s to export-db: %v", app.Name, err)
}
util.Failed("ddev can't export-db until the project is started, please start it first.")
}

err = app.ExportDB(outFileName, gzipOption)
Expand Down

0 comments on commit 8269041

Please sign in to comment.