Skip to content

Commit cc14aa7

Browse files
committed
kubescore added
1 parent 6604318 commit cc14aa7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

agent/kubviz/kube_score.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ func executeCommand(command string) (string, error) {
6969
stdout, err := cmd.Output()
7070

7171
if err != nil {
72-
log.Println("Execute Command Error", err.Error())
72+
log.Printf("Error executing command: %s", err)
73+
return "", err
7374
}
7475

7576
// Print the output
76-
log.Println(string(stdout))
77+
log.Printf("Command Output: %s", string(stdout))
78+
7779
return string(stdout), nil
7880
}

0 commit comments

Comments
 (0)