mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-05 23:15:07 -06:00
Log and propagate error instead of using Fatal
This commit is contained in:
@@ -17,6 +17,7 @@ func main() {
|
||||
})
|
||||
if err != nil {
|
||||
slog.Error("Error connecting to HASS:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
defer app.Cleanup()
|
||||
|
||||
Reference in New Issue
Block a user