Throw an error when failing to load config

This commit is contained in:
Manuel Thalmann 2024-08-11 18:27:06 +02:00
parent b4be84c827
commit 8ad456c0a3

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!";
}
}
<#