Make the wine-not-found error actionable

FindWine's error used to just say wine64/wine weren't on PATH, with no
next step - surface the exact install fix ("install the wine
package") instead of leaving the reader to figure that out
themselves.
This commit is contained in:
Cheviiot
2026-07-25 18:17:59 +10:00
parent 5cf52c9f9f
commit 98bac75767
2 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -14,5 +14,5 @@ func FindWine() (string, error) {
if p, err := exec.LookPath("wine"); err == nil {
return p, nil
}
return "", fmt.Errorf("neither wine64 nor wine found in PATH")
return "", fmt.Errorf("neither wine64 nor wine found in PATH (install the wine package)")
}