mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-23 13:31:39 +02:00
fix %w
This commit is contained in:
parent
3c0d3561fb
commit
ff2ac2194d
@ -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"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user