Skip to content

Commit d19bfff

Browse files
authored
Fix return error when getting profile flag (#1370)
1 parent 54d4820 commit d19bfff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/benchmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func systemCommandAction(cmd *cobra.Command, args []string) error {
253253

254254
profile, err := cobraext.GetProfileFlag(cmd)
255255
if err != nil {
256-
return nil
256+
return err
257257
}
258258

259259
signal.Enable()

cmd/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func upCommandAction(cmd *cobra.Command, args []string) error {
6262

6363
profile, err := cobraext.GetProfileFlag(cmd)
6464
if err != nil {
65-
return nil
65+
return err
6666
}
6767

6868
_, serviceName := filepath.Split(packageRoot)

0 commit comments

Comments
 (0)