From a1a0db438eb29afe9a7b638127d888460fe6aaef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 11 Aug 2024 18:27:06 +0200 Subject: [PATCH] Throw an error when failing to load config --- scripts/Common/Scripts/Config.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Common/Scripts/Config.ps1 b/scripts/Common/Scripts/Config.ps1 index 013f6d58d..f27ac1a17 100644 --- a/scripts/Common/Scripts/Config.ps1 +++ b/scripts/Common/Scripts/Config.ps1 @@ -89,6 +89,10 @@ $null = New-Module { fish -c ". $(ConvertTo-LinuxPath $scriptPath); $Script" | ConvertFrom-Json; } + + if (-not $?) { + throw "The configuration could not be retrieved!"; + } } <#