Skip to content

Commit

Permalink
don't show error if AI Debugger completed
Browse files Browse the repository at this point in the history
  • Loading branch information
nullfunc committed Jan 13, 2025
1 parent 53a2432 commit 6887aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/cli/command/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func makeComposeUpCmd() *cobra.Command {
track.Evt("Debug Prompted", P("reason", err))
// Call the AI debug endpoint using the original command context (not the tailCtx which is canceled)
if nil == cli.InteractiveDebug(ctx, client, provider, "", project, nil, loadErr) {
return err // don't show the defang hint if debugging was successful
return nil // don't show the defang hint if debugging was successful
}
}

Expand Down Expand Up @@ -441,7 +441,7 @@ func makeComposeConfigCmd() *cobra.Command {
track.Evt("Debug Prompted", P("reason", err))
// Call the AI debug endpoint using the original command context (not the tailCtx which is canceled)
if nil == cli.InteractiveDebug(ctx, client, provider, "", project, nil, err) {
return err // don't show the defang hint if debugging was successful
return nil // don't show the defang hint if debugging was successful
}
}
}
Expand Down

0 comments on commit 6887aee

Please sign in to comment.