Throw an error when failing to load config
This commit is contained in:
parent
61be50fb63
commit
6c8882efd9
|
@ -89,6 +89,10 @@ $null = New-Module {
|
|||
|
||||
fish -c ". $(ConvertTo-LinuxPath $scriptPath); $Script" | ConvertFrom-Json;
|
||||
}
|
||||
|
||||
if (-not $?) {
|
||||
throw "The configuration could not be retrieved!";
|
||||
}
|
||||
}
|
||||
|
||||
<#
|
||||
|
|
Loading…
Reference in a new issue