remove Write-Warning for CAPIErrors.

Allow them to bubble up.
(Might be worth adding a helper function to print stacktrace?)
This commit is contained in:
2023-08-16 16:36:43 +01:00
parent 844eaeabaa
commit 9b3d9f2250
4 changed files with 74 additions and 167 deletions

View File

@@ -8,6 +8,6 @@ function Get_VMPath {
return $(Get-ItemPropertyValue -Path ($REG_KEY + $VM_KEY) -Name UninstallString | Split-Path -Parent)
}
catch {
throw [VMRemoteError]::new("Couldn't get Voicemeeter path")
throw [VMRemoteError]::new("Unable to fetch Voicemeeter path from the Registry.")
}
}