panic bugfix

This commit is contained in:
ston1th 2019-05-30 16:03:51 +02:00
commit c8adfd2ef9
2 changed files with 5 additions and 1 deletions

View file

@ -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()