mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 07:02:12 +08:00
pkg/cmd: Check errors (#19700)
* pkg/cmd: Check errors * pkg/cmd: Make sure server waits on services, even in case of error * pkg/cmd: Inform of error to show help * pkg/cmd: Only warn on failure to send systemd notification * pkg/cmd: Don't log errors stemming from context cancelation * pkg/cmd: Don't fail if unable to write to systemd
This commit is contained in:
@ -80,8 +80,9 @@ func (fcli *FakeCommandLine) FlagNames() []string {
|
||||
return flagNames
|
||||
}
|
||||
|
||||
func (fcli *FakeCommandLine) ShowHelp() {
|
||||
func (fcli *FakeCommandLine) ShowHelp() error {
|
||||
fcli.HelpShown = true
|
||||
return nil
|
||||
}
|
||||
|
||||
func (fcli *FakeCommandLine) Application() *cli.App {
|
||||
|
Reference in New Issue
Block a user