diff --git a/cmd/benchmark.go b/cmd/benchmark.go index 7b56fac223..2e14384fdf 100644 --- a/cmd/benchmark.go +++ b/cmd/benchmark.go @@ -253,7 +253,7 @@ func systemCommandAction(cmd *cobra.Command, args []string) error { profile, err := cobraext.GetProfileFlag(cmd) if err != nil { - return nil + return err } signal.Enable() diff --git a/cmd/service.go b/cmd/service.go index f9d1d61924..f396c50fa6 100644 --- a/cmd/service.go +++ b/cmd/service.go @@ -62,7 +62,7 @@ func upCommandAction(cmd *cobra.Command, args []string) error { profile, err := cobraext.GetProfileFlag(cmd) if err != nil { - return nil + return err } _, serviceName := filepath.Split(packageRoot)