From 6887aee428fafee93ec3693e83fc089e4624822a Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 13 Jan 2025 15:16:34 -0800 Subject: [PATCH] don't show error if AI Debugger completed --- src/cmd/cli/command/compose.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/cli/command/compose.go b/src/cmd/cli/command/compose.go index 552313ef..8b527c7a 100644 --- a/src/cmd/cli/command/compose.go +++ b/src/cmd/cli/command/compose.go @@ -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 } } @@ -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 } } }