From 9c2ebaf858966d446f5353dd21ed93176f4353d7 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 013f6d58..f27ac1a1 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!"; + } } <#