This commit is contained in:
Sergio Moura 2023-09-11 13:03:29 -04:00
parent 3c0d3561fb
commit ff2ac2194d

View File

@ -418,7 +418,7 @@ func healthCheckHandler(w http.ResponseWriter, r *http.Request) {
} else { } else {
err := GLOBAL_DB.Ping() err := GLOBAL_DB.Ping()
if err != nil { if err != nil {
panic(fmt.Sprintf("failed to ping DB: %w", err)) panic(fmt.Errorf("failed to ping DB: %w", err))
} }
} }
w.Write([]byte("OK")) w.Write([]byte("OK"))