Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/ui/console/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ func (c Client) Fetch(ctx context.Context, failOnError bool) error {
if st, ok := status.FromError(err); !ok || st.Code() != gcodes.Canceled {
return err
}

}

if ui.IsTerminal() && fetchProgress != nil {
Expand All @@ -138,6 +137,11 @@ func (c Client) Fetch(ctx context.Context, failOnError bool) error {
printFetchResponse(response)
}

if response == nil {
ui.ColorizedOutput(ui.ColorProgress, "Provider fetch canceled.\n\n")
return nil
}

ui.ColorizedOutput(ui.ColorProgress, "Provider fetch complete.\n\n")
for _, summary := range response.ProviderFetchSummary {
status := emojiStatus[ui.StatusOK]
Expand Down