Throw an error when failing to load config

This commit is contained in:
Manuel Thalmann 2024-08-11 18:27:06 +02:00
parent 9db3528c08
commit 153d1ea925

View file

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