6 ms·
Throw-And-Exit is a custom function in the script @ https://github.com/brooks-code/WSL-VHDX-Compact/blob/main/wsl_compactor.ps1 https://github.com/brooks-code/W
by TacticalMalice 1y ago
Throw-And-Exit is a custom function in the script @ https://github.com/brooks-code/WSL-VHDX-Compact/blob/main/wsl_compactor.ps1 https://github.com/brooks-code/WSL-VHDX-Compact/blob/main/ws...
- jve 1y agoWell in that case, a regular throw can be used. Don't see a need for custom function. From docs: > The throw keyword causes a terminating error. You can use the throw keyword to stop the processing of a command, function, or script.
- twilight-code 1y agogood point