pull/360/head
cnlh 2020-01-07 10:02:58 +08:00
parent 8590dfde30
commit 35311010a6
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ func main() {
} }
err := service.Control(s, os.Args[1]) err := service.Control(s, os.Args[1])
if err != nil { if err != nil {
logs.Error("Valid actions: %q\n", service.ControlAction, err.Error()) logs.Error("Valid actions: %q\n%s", service.ControlAction, err.Error())
} }
return return
} }

View File

@ -94,13 +94,13 @@ func main() {
} }
err = service.Control(s, os.Args[1]) err = service.Control(s, os.Args[1])
if err != nil { if err != nil {
logs.Error("Valid actions: %q\n", service.ControlAction, err.Error()) logs.Error("Valid actions: %q\n%s", service.ControlAction, err.Error())
} }
return return
case "start", "restart", "stop", "uninstall": case "start", "restart", "stop", "uninstall":
err := service.Control(s, os.Args[1]) err := service.Control(s, os.Args[1])
if err != nil { if err != nil {
logs.Error("Valid actions: %q\n", service.ControlAction, err.Error()) logs.Error("Valid actions: %q\n%s", service.ControlAction, err.Error())
} }
return return
case "update": case "update":