Skip to content

Commit 2bb1d57

Browse files
edwardrfedw-defang
andauthored
Do not return err if we failed to tail (#664)
Co-authored-by: Edward J <[email protected]>
1 parent e5092b6 commit 2bb1d57

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cmd/cli/command/compose.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,8 @@ func makeComposeUpCmd() *cobra.Command {
122122
<-tailCtx.Done()
123123
} else if !errors.Is(tailCtx.Err(), context.Canceled) {
124124
return err // any error other than cancelation
125-
}
126-
127-
// Tail got canceled; if it was by anything other than completion, prompt to show debugger
128-
if !errors.Is(context.Cause(tailCtx), errCompleted) {
125+
} else if !errors.Is(context.Cause(tailCtx), errCompleted) {
126+
// Tail got canceled; if it was by anything other than completion, prompt to show debugger
129127
var failedServices []string
130128
var errDeploymentFailed cli.ErrDeploymentFailed
131129
if errors.As(context.Cause(tailCtx), &errDeploymentFailed) {

0 commit comments

Comments
 (0)