Skip to content

Commit

Permalink
update function name to better describe parameter excpected.
Browse files Browse the repository at this point in the history
  • Loading branch information
nullfunc committed Jan 13, 2025
1 parent 3033298 commit 06f3936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pkg/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
patterns = []string{"*.js", "*.ts", "*.py", "*.go", "requirements.txt", "package.json", "go.mod"} // TODO: add patterns for other languages
)

func InteractiveDebug(ctx context.Context, c client.FabricClient, p client.Provider, etag types.ETag, project *compose.Project, failedServices []string, termError error) error {
func InteractiveDebug(ctx context.Context, c client.FabricClient, p client.Provider, etag types.ETag, project *compose.Project, failedServices []string, loadError error) error {
var aiDebug bool
if err := survey.AskOne(&survey.Confirm{
Message: "Would you like to debug the deployment with AI?",
Expand All @@ -42,7 +42,7 @@ func InteractiveDebug(ctx context.Context, c client.FabricClient, p client.Provi

track.Evt("Debug Prompt Accepted", P("etag", etag))

if err := Debug(ctx, c, p, etag, project, failedServices, termError); err != nil {
if err := Debug(ctx, c, p, etag, project, failedServices, loadError); err != nil {
term.Warnf("Failed to debug deployment: %v", err)
return err
}
Expand Down

0 comments on commit 06f3936

Please sign in to comment.