mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-18 13:33:31 +00:00
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:
@@ -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.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user