mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-04 22:00:43 +00:00
fixed #354
This commit is contained in:
parent
8590dfde30
commit
35311010a6
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user