mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
[yabridgectl] Don't panic on empty wine --version
And print a more descriptive error message instead. This is only relevant when using a `WINELOADER` that causes `$WINELOADER --version` to not output anything.
This commit is contained in:
@@ -262,7 +262,12 @@ pub fn verify_wine_setup(config: &mut Config) -> Result<()> {
|
||||
.stdout;
|
||||
// Strip the trailing newline just to make the config file a bit neater
|
||||
let mut wine_version = String::from_utf8(wine_version_output)?;
|
||||
wine_version.pop().unwrap();
|
||||
wine_version.pop().with_context(|| {
|
||||
format!(
|
||||
"Running '{} --version' resulted in empty output",
|
||||
wine_binary
|
||||
)
|
||||
})?;
|
||||
|
||||
let files = config
|
||||
.files()
|
||||
|
||||
Reference in New Issue
Block a user