pkg/cmd/grafana-server/server.go: Check sendSystemdNotification return value.

See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=errcheck ./...
server.go:165:25⚠️ error return value not checked (sendSystemdNotification("READY=1")) (errcheck)
This commit is contained in:
Mario Trangoni 2018-11-13 21:20:44 +01:00
parent dae7c11a5f
commit 774ad3ff39

View File

@ -162,7 +162,11 @@ func (g *GrafanaServerImpl) Run() error {
})
}
sendSystemdNotification("READY=1")
err = sendSystemdNotification("READY=1")
if err != nil {
return fmt.Errorf("Could not send systemd notification: %v", err)
}
return g.childRoutines.Wait()
}