mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 22:02:17 +08:00
feat(cli): improve error handling for missing plugin dir
This commit is contained in:
@ -11,6 +11,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
|
||||
|
||||
cmd := &contextCommandLine{context}
|
||||
if err := command(cmd); err != nil {
|
||||
log.Error("\nError: ")
|
||||
log.Errorf("%s\n\n", err)
|
||||
|
||||
cmd.ShowHelp()
|
||||
|
Reference in New Issue
Block a user