Commit 8ee06a99 authored by derekwaynecarr's avatar derekwaynecarr

Improve event readability

parent e968b6be
...@@ -40,7 +40,7 @@ var ErrNoNodesAvailable = fmt.Errorf("no nodes available to schedule pods") ...@@ -40,7 +40,7 @@ var ErrNoNodesAvailable = fmt.Errorf("no nodes available to schedule pods")
// implementation of the error interface // implementation of the error interface
func (f *FitError) Error() string { func (f *FitError) Error() string {
output := fmt.Sprintf("failed to find fit for pod: %v", f.Pod) output := fmt.Sprintf("failed to find fit for pod, ")
for node, predicateList := range f.FailedPredicates { for node, predicateList := range f.FailedPredicates {
output = output + fmt.Sprintf("Node %s: %s", node, strings.Join(predicateList.List(), ",")) output = output + fmt.Sprintf("Node %s: %s", node, strings.Join(predicateList.List(), ","))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment