Skip to content
Open
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
4 changes: 4 additions & 0 deletions cli/pkg/cmd/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ func HandleReleaseDiff(kpClientParams kutil.RequestParameters, args kutil.Authen
log.Printf("error on getting manifests, error: %v", err)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't we still get an error when calling getManifests here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, GetManifests now returns an empty string on a 404 getting an manifest here.

return ReturnCodeFailure
}
if len(body) == 0 {
fmt.Printf("No previous version.\n")
return ReturnCodeSuccess // no previous version, allow this to pass
}

var resp = &GetManifestsResponse{
Manifests: nil,
Expand Down
Loading