fix go lint
Some checks failed
Build / docker (push) Failing after 8s

This commit is contained in:
2025-01-26 13:54:41 +01:00
parent fc028a2c55
commit 75b809511e
8 changed files with 14 additions and 15 deletions

View File

@@ -118,7 +118,10 @@ func RestoreDatabase(db *dbConfig, conf *RestoreConfig) {
if err != nil {
return
}
testDatabaseConnection(db)
err = testDatabaseConnection(db)
if err != nil {
utils.Fatal("Error connecting to the database %v", err)
}
utils.Info("Restoring database...")
extension := filepath.Ext(filepath.Join(tmpPath, conf.file))