[server] Report errors on storage initialization

This commit is contained in:
Abhishek Shroff
2025-06-07 22:40:21 +05:30
parent 34ce2e9e37
commit 1c3fc828fa

View File

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