Skip to content

Commit

Permalink
fix: updated list.go to handle k8sgpt cache list crashing issue (#455)
Browse files Browse the repository at this point in the history
* Update list.go

Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>

* fix: updated list.go to handle k8sgpt cache list crashing issue

Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>

---------

Signed-off-by: Krishna Dutt Panchagnula <krishnadutt123@gmail.com>
Co-authored-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
krishnaduttPanchagnula and AlexsJones committed May 25, 2023
1 parent 2994c1c commit 6eac58d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/cache/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ var listCmd = &cobra.Command{
// list the contents of the cache
names, err := c.List()
if err != nil {
panic(err)
color.Red("Error: %v", err)
os.Exit(1)
}

for _, name := range names {
println(name)
}
Expand Down

0 comments on commit 6eac58d

Please sign in to comment.