News for hackers. Stuff that matters.
Re:Free up space (effortlessly) on WSL2 by TacticalMalice on Tuesday August 19, 2025 @04:25AM (#44949484)
Throw-And-Exit is a custom function in the script @ https://github.com/brooks-code/WSL-VHDX-Compact/blob/main/ws...
Re:Free up space (effortlessly) on WSL2 by jve on Tuesday August 19, 2025 @05:26AM (#44949779)
Well 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.

Re:Free up space (effortlessly) on WSL2 by twilight-code on Tuesday August 19, 2025 @02:21PM (#44954587)
good point