Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit d206222

Browse files
committed
fix bubbling up of error
1 parent 0d17f41 commit d206222

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compose/internal/composebinary/composebinary.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (wrapper *ComposeWrapper) Deploy(ctx context.Context, workingDir, host, pro
3737
if len(output) != 0 {
3838
if err != nil {
3939
log.Printf("[libstack,composebinary] [message: deploy complete] [output: %s] [err: %s]", output, err)
40-
return nil
40+
return err
4141
}
4242

4343
log.Printf("[libstack,composebinary] [message: deploy complete] [output: %s] [success]", output)
@@ -52,7 +52,7 @@ func (wrapper *ComposeWrapper) Remove(ctx context.Context, workingDir, host, pro
5252
if len(output) != 0 {
5353
if err != nil {
5454
log.Printf("[libstack,composebinary] [message: remove complete] [output: %s] [err: %s]", output, err)
55-
return nil
55+
return err
5656
}
5757

5858
log.Printf("[libstack,composebinary] [message: remove complete] [output: %s] [success]", output)
@@ -68,7 +68,7 @@ func (wrapper *ComposeWrapper) Pull(ctx context.Context, workingDir, host, proje
6868
if len(output) != 0 {
6969
if err != nil {
7070
log.Printf("[libstack,composebinary] [message: pull complete] [output: %s] [err: %s]", output, err)
71-
return nil
71+
return err
7272
}
7373

7474
log.Printf("[libstack,composebinary] [message: pull complete] [output: %s] [success]", output)

0 commit comments

Comments
 (0)