Log and propagate error instead of using Fatal

This commit is contained in:
Jiri Luzny
2023-12-25 01:27:38 +01:00
parent ccb0f19d41
commit 628544c7a0
7 changed files with 40 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ func main() {
})
if err != nil {
slog.Error("Error connecting to HASS:", err)
os.Exit(1)
}
defer app.Cleanup()