From 1f01854b6e274d9b70c4201af6ae37ca8ff96f5b Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 20 Feb 2018 16:57:35 +0100 Subject: [PATCH] Make Update-ServiceBinaries return $False if marker creation fails. This way we can handle the situation in the calling code, e.g. sending an email notification to the admin address. --- Updater/Update-Service.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1 index 93cc9ac..c2fa3f0 100644 --- a/Updater/Update-Service.ps1 +++ b/Updater/Update-Service.ps1 @@ -389,7 +389,7 @@ function Update-ServiceBinaries { } catch { Log-Error "Creating [$($MarkerFile)] FAILED:`n> $($_.Exception.Message)" - Exit + Return $False } Return $True } -- GitLab