diff --git a/src/pkg/cli/debug.go b/src/pkg/cli/debug.go index 9a809b56..541c415a 100644 --- a/src/pkg/cli/debug.go +++ b/src/pkg/cli/debug.go @@ -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?", @@ -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 }