From e1f8aa6816317c7c1b3c8ae8b8da3d6c1315f4ef Mon Sep 17 00:00:00 2001 From: TK <61820360+TomKovac@users.noreply.github.com> Date: Wed, 8 Jan 2025 15:32:39 +0100 Subject: [PATCH] error output --- .github/workflows/app-test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/app-test.yml b/.github/workflows/app-test.yml index 8453da9f..82d3b899 100644 --- a/.github/workflows/app-test.yml +++ b/.github/workflows/app-test.yml @@ -19,6 +19,12 @@ jobs: - name: Run app test PowerShell script run: | - $result = ./scripts/app-test.ps1 -# Write-Output "Script Result: $result" + try + { + ./scripts/app-test.ps1 2>&1 | ForEach-Object { Write-Host $_ } + } + catch + { + Write-Error "An unexpected error occurred: $_" + } shell: powershell \ No newline at end of file