mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-04 18:50:42 -06:00
[server] Report errors on storage initialization
This commit is contained in:
@@ -111,8 +111,9 @@ func SetupCommand() {
|
||||
mail.Cfg = cfg.Mail
|
||||
core.Cfg = cfg.User
|
||||
crypt.Cfg = cfg.Crypt
|
||||
|
||||
storage.Initialize(db.Get(context.Background()))
|
||||
if err := storage.Initialize(db.Get(context.Background())); err != nil {
|
||||
logrus.Fatal("Failed to initialize storage: " + err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
defer func() {
|
||||
|
||||
Reference in New Issue
Block a user