diff options
author | Valery Piashchynski <[email protected]> | 2020-02-11 16:58:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-11 16:58:52 +0300 |
commit | 14c0d45e2317f39c41b6015381626a99de8e510b (patch) | |
tree | fed53537fafe78b412bd1ace834d1f76c3f8f7da /cmd/rr | |
parent | bd6841122908dc8e37ca0f13ab1a95f0f1e923ae (diff) |
Process error from stop.go cobra CLI
Diffstat (limited to 'cmd/rr')
-rw-r--r-- | cmd/rr/cmd/stop.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/rr/cmd/stop.go b/cmd/rr/cmd/stop.go index 8beee73e..7b4794e7 100644 --- a/cmd/rr/cmd/stop.go +++ b/cmd/rr/cmd/stop.go @@ -38,7 +38,6 @@ func stopHandler(cmd *cobra.Command, args []string) error { if err != nil { return err } - defer client.Close() util.Printf("<green>Stopping RoadRunner</reset>: ") @@ -48,5 +47,5 @@ func stopHandler(cmd *cobra.Command, args []string) error { } util.Printf("<green+hb>done</reset>\n") - return nil + return client.Close() } |