From 5965a0c4cb1a3ee36bd38c40edd59916ca4e40af Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Mon, 19 Feb 2018 11:54:36 +0100
Subject: [PATCH] Set ErrorActionPreference to "Stop".

This is required to correctly propagate exceptions from function calls.
Otherwise every call has to specify the "-EA" flag explicitly.

Refers to #28
---
 Updater/Update-Service.ps1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Updater/Update-Service.ps1 b/Updater/Update-Service.ps1
index c1d6748..340817b 100644
--- a/Updater/Update-Service.ps1
+++ b/Updater/Update-Service.ps1
@@ -473,6 +473,7 @@ function Log-Debug([string]$Message) {
 ################################################################################
 
 
+$ErrorActionPreference = "Stop"
 
 try {
     . $UpdaterSettings
-- 
GitLab