1
0

Add better errors if the sqlite db file is not writable

This commit is contained in:
kolaente
2020-06-23 11:21:42 +02:00
parent 7b31301f09
commit caee123f9d
2 changed files with 9 additions and 1 deletions

View File

@ -42,7 +42,7 @@ func initMigration(x *xorm.Engine) *xormigrate.Xormigrate {
var err error
x, err = db.CreateDBEngine()
if err != nil {
log.Criticalf("Could not connect to db: %v", err.Error())
log.Fatalf("Could not connect to db: %v", err.Error())
return nil
}
}