fix(host): surface Vulkan probe failures in setup and doctor

This commit is contained in:
ChenRuoT committed 2026-12-01 13:01:37 +08:00
1 parent e6c8388c37
commit e62742f65d
13 files changed
+66 -27

No files matched your search

+5 -2
View File
@@ -194,9 +194,12 @@ func cmdDoctor(cfg *config.Config, loc i18n.Locale, args []string) error {
}
fmt.Printf("%-36s: %s\n", i18n.T(loc, "doctor.whpx"), i18n.T(loc, whpxKey))
if len(rep.GPUs) == 0 {
if rep.VulkanProbeError != "" {
fmt.Printf("%-36s: %s\n", i18n.T(loc, "doctor.gpu"), i18n.M(loc, "doctor.gpu.probe_failed", i18n.Vars{"detail": rep.VulkanProbeError}))
}
if len(rep.GPUs) == 0 && rep.VulkanProbeError == "" {
fmt.Printf("%-36s: %s\n", i18n.T(loc, "doctor.gpu"), i18n.T(loc, "doctor.gpu.none"))
} else {
} else if len(rep.GPUs) > 0 {
fmt.Printf("%s:\n", i18n.T(loc, "doctor.gpu"))
for _, g := range rep.GPUs {
tags := []string{}