Throw an error when failing to load config

This commit is contained in:
Manuel Thalmann 2024-08-11 18:27:06 +02:00
parent 20a018c7b7
commit 925638ec0c

View file

@ -89,6 +89,10 @@ $null = New-Module {
fish -c ". $(ConvertTo-LinuxPath $scriptPath); $Script" | ConvertFrom-Json;
}
if (-not $?) {
throw "The configuration could not be retrieved!";
}
}
<#