Version 7 #53

Merged
vlbeaudoin merged 33 commits from rewrite/v7 into main 2024-09-03 11:17:26 -04:00
Showing only changes of commit 0321b1b2a0 - Show all commits

6
cmd.go
View file

@ -163,7 +163,11 @@ var webCmd = &cobra.Command{
e.GET("/", func(c echo.Context) error { e.GET("/", func(c echo.Context) error {
pingResult, err := apiClient.GetHealth() pingResult, err := apiClient.GetHealth()
if err != nil { if err != nil {
log.Fatal(err) return c.Render(
http.StatusOK,
"index-html",
voki.MessageResponse{Message: fmt.Sprintf("impossible d'accéder au serveur API: %s", err)},
)
} }
return c.Render( return c.Render(