You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// are fatal: accumulate the error and return no devices.
75
77
resp, err:=http.Get(topologyUrl)
76
78
iferr!=nil {
77
-
returnnil, append(errs, fmt.Errorf("fetching topology from %s: %w", topologyUrl, err))
79
+
returnnil, "NVIDIA-SMI has failed because it couldn't communicate with the topology server.", append(errs, fmt.Errorf("fetching topology from %s: %w", topologyUrl, err))
returnnil, append(errs, fmt.Errorf("topology server %s returned %s: %s", topologyUrl, resp.Status, strings.TrimSpace(string(body))))
89
+
returnnil, "No devices were found", append(errs, fmt.Errorf("topology server %s returned %s: %s", topologyUrl, resp.Status, strings.TrimSpace(string(body))))
0 commit comments