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 {
err := GLOBAL_DB.Ping()
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"))