panic bugfix
This commit is contained in:
parent
1b2a24a901
commit
c8adfd2ef9
2 changed files with 5 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ func New(cfg core.Config) (db *DB, err error) {
|
|||
}
|
||||
|
||||
_, err = db.CreatePage(core.IndexPage, core.WikiSection, welcome, defUser, core.Public)
|
||||
if err != nil {
|
||||
if err != errPageExists && err != nil {
|
||||
return
|
||||
}
|
||||
err = db.RunMigrations()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue