Throw an error when failing to load config
This commit is contained in:
parent
b4be84c827
commit
8ad456c0a3
1 changed files with 4 additions and 0 deletions
|
@ -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!";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
<#
|
||||||
|
|
Loading…
Reference in a new issue