Skip to content

Commit

Permalink
fix: updated list.go to handle k8sgpt cache list crashing issue (k8sg…
Browse files Browse the repository at this point in the history
…pt-ai#455)

* 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>
Signed-off-by: David Sabatie <david.sabatie@notrenet.com>
  • Loading branch information
2 people authored and golgoth31 committed May 27, 2023
1 parent 119828e commit 3b34f1d
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 3b34f1d

Please sign in to comment.